blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b01fa01765514bf343f4f068110fbd7cab8fa532 | 41fe349f67b9aac7ed41e2ccaf941f279379baa2 | /TESTFOLDER/Test.py | 8b1192a7f7db8e68509b3822c197587245477327 | [] | no_license | Jap3dWorks/MayaPy | 3cec086e3029530d5d959bef8499143423c0218c | f7bcfb8e4a3a6c359532ec3d272b127fee9f68cb | refs/heads/master | 2020-03-23T03:51:52.082178 | 2019-01-01T22:27:07 | 2019-01-01T22:27:07 | 141,053,154 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | import maya.api.OpenMaya as OpenMaya
import maya.cmds as cmds
def curveCreateEP():
mselList = OpenMaya.MGlobal.getActiveSelectionList()
mFndagObject = OpenMaya.MFnDagNode()
dependNode = mFndagObject.create('transform', 'curve')
# points
mPointArray = OpenMaya.MPointArray()
mPointArray... | [
"38395064+Jap3dWorks@users.noreply.github.com"
] | 38395064+Jap3dWorks@users.noreply.github.com |
b8e8df4165e5c68d730eab8b8fe69f808f78ca32 | bc08302533982d4a154f5615a2c8366f695234e5 | /work/tools/free_ip.py | 721bcc9f76e13c7c646d22000c17c96dd1e0352c | [] | no_license | rvfedorin/PythonDevelopment | bfd3cfb4ad22d72e2002d7430fa8821ea35717f6 | d6748189874b53b8357d5b3ff7d520ff0a93e15a | refs/heads/master | 2022-12-13T11:53:16.041737 | 2019-02-15T08:50:15 | 2019-02-15T08:50:15 | 122,050,190 | 0 | 0 | null | 2022-12-08T01:18:43 | 2018-02-19T10:57:37 | Python | UTF-8 | Python | false | false | 3,528 | py | def mark_used_ip(list_used_ip, list_all_ip):
for ip in list_all_ip:
if ip in list_used_ip:
position_ip = list_all_ip.index(ip)
list_all_ip[position_ip] = 'x'
def get_free_lan(list_ip_with_used):
free_lan = []
for lan in range(25, 33):
count_subnet = 2**(lan - 24)
... | [
"35657347+rvfedorin@users.noreply.github.com"
] | 35657347+rvfedorin@users.noreply.github.com |
0ce7fa3ff54ced5a15f802f3250f417770921ea9 | d7242e07cc79aa7a5e32a376de7e5a9d5f294cf7 | /0x0A-python-inheritance/3-is_kind_of_class.py | 77732c7315bcdc022c31b2cff3f39467cbf04ddf | [] | no_license | Jfprado11/holbertonschool-higher_level_programming | 87d921290b43202cc8507d898444df9455138d0f | f277a5ecd4dd349d94d9a26542cf9eca23f92fad | refs/heads/main | 2023-07-28T20:30:24.632598 | 2021-09-22T21:32:32 | 2021-09-22T21:32:32 | 361,762,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | #!/usr/bin/python3
"""
chekck if a object is a instance of
a class or if it is a intance inherited
"""
def is_kind_of_class(obj, a_class):
"""check if a intance come from a
specific object"""
if isinstance(obj, a_class):
return True
else:
return False
| [
"jfpc11@misena.edu.co"
] | jfpc11@misena.edu.co |
783c15f25e45e4baa9ecf7d04d81cc4d15b25356 | b9633d8a7c61e63cdb76af9b32273485e680682b | /projecto/ventas/urls.py | 6c6b9c0ce9e7c0fa960834db47eb38d6ad6a4a9d | [] | no_license | AbrWin/paginaWeb | e5fca38154d9785dce15b7a5741d25290c1bdcd1 | 3a6f1143b64ae39bce4706447086e645758716ce | refs/heads/master | 2016-09-05T09:20:25.870500 | 2014-05-08T04:22:44 | 2014-05-08T04:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('ventas.views',
url(r'^add/producto/$','add_product_view', name='vista_addProducto'),
url(r'^edit/producto/(?P<id_prod>.*)/$','edit_product_view', name='vista_edit_producto'),
) | [
"tidusxt@hotmail.com"
] | tidusxt@hotmail.com |
e4c0e92a5c5ae4d52e039b64627acae0a2c3b266 | 92f7ba5345401f0e87ff1e34cac70854dec9c0ef | /search/searchAgents.py | 6886f12a2fbe99782f98f443f92067878c7a5898 | [] | no_license | xiaojunch/cs188 | 4c1c7e1804ae0b1a4c0fef6b4acb618164e029a0 | a6c37365e07c4edf4c968ffabd4aa45f2113bfb7 | refs/heads/master | 2021-01-23T10:57:46.844385 | 2017-07-02T16:49:51 | 2017-07-02T16:49:51 | 93,114,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,437 | py | # searchAgents.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... | [
"xiaojunch@gmail.com"
] | xiaojunch@gmail.com |
175e2835830e918abdf633ac13e097ad4dffcd2c | 6e5ddc38d08a060dee8ce705290f180ba0ea43d9 | /jenkins-cf-template.py | e3bf14acc62e3e30bc7da0e31048f4d88980b7a9 | [] | no_license | escher100/effectiveDevOps | 91d91748d27714b4b32e3a09980b70a471e86c9b | c4f93d19cf4bce650b8c3e1d1bd270b5004c8a91 | refs/heads/master | 2021-01-21T13:29:34.031503 | 2017-10-10T16:48:25 | 2017-10-10T16:48:25 | 102,128,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,292 | py | """Generating CloudFormation template."""
from ipaddress import ip_network
from ipify import get_ip
from troposphere import (
Base64,
ec2,
GetAtt,
Join,
Output,
Parameter,
Ref,
Template,
)
ApplicationName = "jenkins"
ApplicationPort = "8080"
# Setup Github repo to install ansible, gu... | [
"escher00@yahoo.com"
] | escher00@yahoo.com |
15205ba55d76eb5bd6affa8f92d7501e5f2d30b2 | e40f1fbddf344e2b0addfd82b47cbc7590c34cd7 | /config/settings/local.py | 9bca4c920aa8fc37271052ec8e07d0bc6b5f074c | [
"MIT"
] | permissive | rchdlps/django-docker | 48ca4a6320c2f7735f6a9cb5271ad2dff62cca3e | 2c12732264c1f17cd62e20927b5956db498c30b7 | refs/heads/master | 2020-03-30T16:22:14.145387 | 2018-10-03T12:06:20 | 2018-10-03T12:06:20 | 151,405,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env('DJANGO_SECRET_KEY', de... | [
"rchdlps@gmail.com"
] | rchdlps@gmail.com |
1c95e6322f01f2981b14f4584444c325432b8207 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/patching/zun_compute_api/providerregion.py | 4dc91fc51a266902d9ef25f4c4c4b88fc506ef8c | [] | no_license | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 1,658 | py | def providerregion_update(self, context, container, *args):
if direct_action:
return self.manager.providerregion_update(context, container, *args)
else:
return self.rpcapi.providerregion_update(context, container, *args)
def providerregion_show(self, context, container,... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
7d30bdd38adf7e9f60ce553d4bff9fdca4b79980 | 5d986636a746aa8bab3b3412f15e66992a4d5c6e | /demos/week03_alfred/final_demo.py | ecb7715449fd04f953563443e52af19ffced16d6 | [] | no_license | DL-StudyGroup/deep_learning_from_scratch | 863444c2be1b4c426a42b0385f90f599c5c87860 | 561d4405b9a583f369639026376fb95133e2dc7e | refs/heads/master | 2020-04-08T23:36:32.282595 | 2019-05-12T09:12:03 | 2019-05-12T09:12:03 | 159,832,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import numpy as np
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def relu(x):
return np.maximum(0.0, x)
X = np.array([1.0, 0.5])
W1 = np.array([[0.1, 0.3, 0.5], [0.2, 0.4, 0.6]])
B1 = np.array([0.1, 0.2, 0.3])
W2 = np.array([[0.1, 0.4], [0.2, 0.5], [0.3, 0.6]])
B2 = np.array([0.1, 0.2])
W3 = np.array([[0.1,... | [
"super.marrimo@gmail.com"
] | super.marrimo@gmail.com |
ea468b999d209aa5949f47fbf2a33213a78b306b | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/maintenance/migrations/0010_auto_20200228_1755.py | dfa45158e5acc1cee91f1e527738011a5ef40379 | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 1,121 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2020-02-28 16:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maintenance', '0009_auto_20200211_1011'),
]
operations = [
migrations.Alte... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
a67fd9139f1b1a1a5f55555ccfc4ea911006371a | f1e98def25f88d17c328c07d4052cd6c34c27707 | /app/accounts/migrations/0002_alter_account_is_active.py | c7dd55e323cc76df4802b6c243d6f44f3d2b3d94 | [
"MIT"
] | permissive | iyanuashiri/exchange-api | c7f1fd2257c3369de9c0b7bea6806c602f25662e | 86f7a4e9fb17f71888e6854510618876d1010c19 | refs/heads/main | 2023-05-30T22:57:46.901693 | 2021-06-13T21:59:22 | 2021-06-13T21:59:22 | 376,542,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Generated by Django 3.2.4 on 2021-06-13 17:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account',
name='is_active',
... | [
"ajaoiyanu@gmail.com"
] | ajaoiyanu@gmail.com |
9685e8cfcd31ffd39a866a869baaa544acb5ec95 | 51cbdd33fd4480a920ee4e7a226f2e5ab8c59135 | /ex010.py | 37bc85729b645f2a46ef65a110cceeb011b73ce6 | [] | no_license | Prixribeiro/CursoPython | 6d9e6d74da795b5d9cc6e33811e4c727227b8633 | 61f4bc1d12243611197b84085f08f378ff1f97f1 | refs/heads/main | 2023-07-18T07:11:13.627425 | 2021-09-08T22:05:09 | 2021-09-08T22:05:09 | 404,506,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #Exercício Python 10: Crie um programa que leia quanto dinheiro uma pessoa tem na carteira e mostre quantos dólares ela pode comprar.
rs = float(input('Digite o valor em Reais (R$) que deseja converter para dólares: '))
print('Com o valor de R$ {:.2f}, você obterá USD {:.2f}.'.format(rs, rs/5.32)) | [
"priscila.ribeiro@blueshift.com.br"
] | priscila.ribeiro@blueshift.com.br |
fe310f983b6714414978669e071340bb0e31060d | 1d6ee28b8f5a7e820b5b53a924fb611e99d39c9e | /third-party/stanza/stanza/nlp/CoreNLP_pb2.py | 483d71a011054f568487a422472e134ff8011531 | [
"Apache-2.0"
] | permissive | arunchaganty/django-corenlp | bb222c47fd2f02bd10b559fc52250ce8f2b5871f | 4cda142d375bdac84057cedc3d08b525b1e2d498 | refs/heads/master | 2020-05-21T18:06:34.616273 | 2016-10-01T18:50:46 | 2016-10-01T18:50:46 | 64,433,765 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | true | 124,473 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: CoreNLP.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _m... | [
"chaganty@stanford.edu"
] | chaganty@stanford.edu |
34b10e72f10087aaa703323b4c4bb1e1fefdc4d2 | 5b7d5723b84f5011965aba18ebf0c080253b2fcb | /posts/views/feed.py | 607dc5b67c34d133f749e9e5c0c63d56c801c80a | [
"MIT"
] | permissive | ReDetection/vas3k.club | 5980e6849ccf2e67a380d80d23036ec09ed94453 | ad97fefca5ec52047b2daad77ddf2eb2aecb03b3 | refs/heads/master | 2023-06-11T19:48:56.730541 | 2020-08-12T17:44:26 | 2020-08-12T17:44:26 | 287,545,618 | 0 | 0 | MIT | 2020-08-14T13:58:31 | 2020-08-14T13:58:30 | null | UTF-8 | Python | false | false | 2,905 | py | from datetime import datetime, timedelta
from django.db.models import Q
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from auth.helpers import auth_required
from common.pagination import paginate
from posts.models import Post, Topic
POST_TYPE_ALL = "all"
ORDERING_ACTIVITY = ... | [
"me@vas3k.ru"
] | me@vas3k.ru |
5c3b9ce4daac002df7317fca1d9da2026544660a | 82205ef1622ef3bb3bd4982f6ddc52509686af8c | /numba2/pipeline.py | 6a3813352da9a461afdad7bd801f5f684e75bdd7 | [] | no_license | cooperliu101/numba-lang | 22f1567e17cd7cf831f254bf64bc7e3192c973c3 | 37abfcbb516175153e73474dababb2d89cba7a8b | refs/heads/master | 2021-07-21T14:35:23.943243 | 2013-11-15T12:07:53 | 2013-11-15T12:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | # -*- coding: utf-8 -*-
"""
Pipeline that determines phase ordering and execution.
"""
from __future__ import print_function, division, absolute_import
import dis
import types
import pykit.ir
#===------------------------------------------------------------------===
# Pipeline
#===-----------------------------------... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
da6271e4473c4f6128fa66d16c48da1dbdb346d2 | e9ada720b2ba54bdf26cce9b0d2bc010c66eca72 | /model.py | 7a09d58f62b2d9c5cb9e35ff7b41c55ff5f44152 | [] | no_license | ErnstDinkelmann/udacity_deeprl_banana_nav | 1038135390acd966d9e7cb27b107c991d04c14ba | cedd34475358b49ae0000a18280a72b8b5065f0e | refs/heads/master | 2020-04-03T10:37:16.175955 | 2018-12-06T10:23:52 | 2018-12-06T10:23:52 | 155,197,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class QNetwork(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, int_hl_1_num_units=32, int_hl_2_num_units=32):
"""Initialize parameters and build model.
Params
======
... | [
"ernst.dinkelmann@gmail.com"
] | ernst.dinkelmann@gmail.com |
f3e7ef114ef2471fbf5671381769253a62f14fce | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/bin/rst2latex.py | f2bf88ab2545f14b13e630bbf6232fa0aac977a0 | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 831 | py | #!/home/shello/Documents/BioMixer/biomixer-venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
... | [
"marcelo.becerra@ug.uchile.cl"
] | marcelo.becerra@ug.uchile.cl |
93adb7797d8a7c1cc59d5a0b27f379fc78998961 | 3f2271fae5a2f8ffec65b1d679f8b9891f7259fe | /lib/python3.6/site-packages/pyx/document.py | bc91c41408822ca1be0b6c59754549f6df35fc77 | [] | no_license | VirSanctus/SpiderWeb | 7fffeae325a8987f971e4ce26c2e2cc26d70262c | ce4c2bbf2d0023ae63ecd9dd05d501588afb0760 | refs/heads/master | 2022-11-07T14:33:33.252843 | 2019-05-30T06:35:54 | 2019-05-30T06:35:54 | 189,094,755 | 0 | 1 | null | 2022-11-01T17:28:27 | 2019-05-28T20:00:11 | Python | UTF-8 | Python | false | false | 8,295 | py | # -*- encoding: utf-8 -*-
#
#
# Copyright (C) 2005-2011 Jörg Lehmann <joergl@users.sourceforge.net>
# Copyright (C) 2005-2011 André Wobst <wobsta@users.sourceforge.net>
#
# This file is part of PyX (http://pyx.sourceforge.net/).
#
# PyX is free software; you can redistribute it and/or modify
# it under the terms of the... | [
"avielpr@checkpoint.com"
] | avielpr@checkpoint.com |
f9c5746de643c287fa2b5dd1201e7b31848a3a50 | 0685bc7b88fa33b119edbd10b67649b12fcf2994 | /utils.py | 1fd7158a16643c3be185a58c61fc319b559310af | [] | no_license | fernandogarcia547/WebScraper | 6ea14c33b53fb096486d1e6ad1c621442464eb32 | 568b5a79c7fa5229d83941460fd5617605f535af | refs/heads/master | 2020-09-24T11:05:50.858262 | 2019-12-04T00:50:07 | 2019-12-04T00:50:07 | 225,746,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | def extractNumbers(xStr):
xDigits = [int(d) for d in xStr if d.isdigit()]
xNum = np.sum([digit*(10**exponent) for digit, exponent in
zip(xDigits[::-1], range(len(xDigits)))])
return xNum
| [
"noreply@github.com"
] | fernandogarcia547.noreply@github.com |
c6a74cae264cfe137887a6a21fcbd3c2a83f69b2 | 0d885803267a021887b512cffb74ffee43e7f6f4 | /exchangeability/bin/parse-results-ml-no-sort.py | 3369a18e19113c420bad1d48b3f90f3dc039037f | [
"CC-BY-4.0"
] | permissive | joaks1/msbayes-experiments | ecc48ac73b35ec5930c48da8716b72b61fc4e62d | 72fcf3c26f6d92bdcc39343372552f45d72d8f7f | refs/heads/master | 2021-01-21T21:43:15.109146 | 2017-11-06T02:11:14 | 2017-11-06T02:11:14 | 12,230,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | #! /usr/bin/env python
import os
import sys
from pymsbayes.utils.parsing import DMCSimulationResults
from pymsbayes.utils.messaging import get_logger
_LOG = get_logger(__name__)
def main_cli():
bin_dir = os.path.abspath(os.path.dirname(__file__))
project_dir = os.path.abspath(os.path.dirname(bin_dir))
r... | [
"joaks1@gmail.com"
] | joaks1@gmail.com |
25687f3071c625cc21d3d7dd48ca14723ceb965a | 1976212e3c44a292060da51ab56453d22cc3f69d | /LP2/AC10/lmsteste/curriculo/migrations/0001_initial.py | 7bfbacd8951faac6e3f2264e02a481260b287ced | [
"Apache-2.0"
] | permissive | luisxfelipe/Faculdade_Impacta_2semestre | 9d2f9a623a6544b42a0a7a21f6b2c6688a54a4df | ad6e0bcc22496bb96f56c5ca3d930554dd5302a4 | refs/heads/master | 2022-12-05T22:19:46.110930 | 2019-05-23T14:47:40 | 2019-05-23T14:47:40 | 170,687,194 | 0 | 0 | Apache-2.0 | 2022-11-22T03:14:30 | 2019-02-14T12:22:57 | Python | UTF-8 | Python | false | false | 4,301 | py | # Generated by Django 2.1.3 on 2018-11-29 00:22
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('contas', '0001_initial'),
]
operations = [
migrations.Crea... | [
"luis.felipe-simoes@outlook.com"
] | luis.felipe-simoes@outlook.com |
5114e9fb9e89b7c121fe36ba7adffd2c63ca57fb | 1f5299e547125f7ba2c3b72984e82ba3b1f984de | /basejumper/security.py | ad0e4a6b627153a5f150932198651845b40573cd | [] | no_license | ESGF/basejump | 72b805818188ae09b1e3329035718b0816927a13 | 593d5e57e63848c30219ca9b49e25f49b59dcf82 | refs/heads/master | 2021-07-23T04:19:57.489628 | 2017-11-02T16:51:52 | 2017-11-02T16:51:52 | 47,994,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import hmac
import hashlib
import json
import collections
def constant_time_compare(val1, val2):
# We'll allow them to know that the lengths of the strings don't match
if len(val1) != len(val2):
return False
result = 0
for x, y in zip(val1, val2):
result |= ord(x) ^ ord(y)
return ... | [
"fries2@llnl.gov"
] | fries2@llnl.gov |
c433ae0599808eb1ea13010018c8a7e094198719 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/189/29190/submittedfiles/swamee.py | 3b19ef457ff49af07dc44e820878bdc4c334e957 | [] | 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 | 414 | py | # -*- coding: utf-8 -*-
import math
f= float(input('digite f:'))
l= float(input('digite l:'))
q= float(input('digite q:'))
delta= float(input('digite delta:'))
v= float(input('digite v:'))
d=(8*f*l*(q*q)/3.14159**2*9.81*delta)/(1/5)
rey=((4*q)/(3.14159*d*v))
k=0.25/(math.log10(0.000002/3.7*d+5.74/rey**0.9))**2
print('O... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e54ad01c09d5f78376da8b5cbb41acdcd81a7a0e | caeecdf46b10a652ad93152146f0983694766e9d | /openeducat_noticeboard/models/notice_board.py | fde0bde44cb117055c2209050c0f1d5dc7c15022 | [] | no_license | aneesfathima/school_management | 010e4bee57b2aea9863ba7d1ecbbfa28182f3ecc | eda2d7699a1110ad903041abdce31aa4da296e9b | refs/heads/master | 2021-01-06T09:47:43.945540 | 2020-02-18T06:54:03 | 2020-02-18T06:54:03 | 241,285,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
import datetime
import time
import calendar
from odoo import http, fields
from odoo.http import request
from odoo import models, fields, api
class openeducat_noticeboard(models.Model):
_name = 'openeducat_noticeboard.noticeboard'
title = fields.Char('Title', required=True)
content ... | [
"noreply@github.com"
] | aneesfathima.noreply@github.com |
c4aa501029ce3d847f0c6daa42556caa5f1b5f4d | 3bf004648ac22448cef6912e775bab46148d0978 | /zr/api.py | 07b831456d5f847e892d30b1a57c348e10ca63d0 | [] | no_license | ncats/zebra_rank | 2f5959cf1886318b66a8b464095156ea4ee7aece | d8fd697c54941cf0739dc0e1a68642113202cadf | refs/heads/master | 2022-11-28T03:11:01.070696 | 2020-08-07T21:39:34 | 2020-08-07T21:39:34 | 281,787,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | from django.http import HttpResponse, Http404
from django.views.decorators.csrf import csrf_exempt
import json, re, sys, logging, traceback
from . import rank_phenotypes as rp
logger = logging.getLogger(__name__)
ORPHANET = rp.ZebraRank('weights_disease_S_ORDO_ORPHANET.json',
'weights_phenotyp... | [
"caodac@gmail.com"
] | caodac@gmail.com |
8e600ba35e9805cb66645133fcc401dfbef6301f | d2fc8f3d180ad519957b7ebfa2c59cd3c33d52bd | /las/bin/run.py | 89cfc39f3dbb0a363490a159f117d60823d389de | [] | no_license | 0xAlwaysDumpling/PhraseVectorExperiment | 6a03a97f41a5445659f457876bbb028b1c07db0b | 95839261847186a58e930f83bb830854e1be1ad4 | refs/heads/master | 2022-07-29T20:18:06.166146 | 2016-11-06T23:38:36 | 2016-11-06T23:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | __author__ = 'Johnny'
import sys,os,inspect
ff_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"../model/feedforward/")))
cnn_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"../m... | [
"jhnnytny@gmail.com"
] | jhnnytny@gmail.com |
f604575cfbcc7e91c6864a85feb5527cce1b9e01 | 2489f15231913f423d3c528b61dc121447eb4875 | /models.py | 00c31866979ba38e21880d6e62708c868778effc | [] | no_license | JBarmentlo/Remote-Control-DB | 0f92ed1e87120bb1504b00e78da0462e2cb63266 | 9181765c3f16c4d116945d353eec56ebd86a74f5 | refs/heads/main | 2023-04-14T03:45:07.246007 | 2021-04-26T09:11:12 | 2021-04-26T09:11:12 | 357,155,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from init import db
from sqlalchemy.types import String, TypeDecorator
import datetime
class HexByteString(TypeDecorator):
"""Convert Python bytestring to string with hexadecimal digits and back for storage."""
impl = String
def process_bind_param(self, value, dialect):
if not isinstance(value, b... | [
"joepbarmentlo@gmail.com"
] | joepbarmentlo@gmail.com |
f5308c737fb3468863c69513b0b3872646c9da83 | f9bc9f5b713a49ae4c3ad726d6a57d48dd3360ff | /test2.py | 4631b48fbe4e8d088f717dc1a7c69e0f52f2df84 | [] | no_license | ahrooran/python-commands | 0203216cf601229325398a15ea1f9f5474853729 | a9d540f9b1f6b098c93f002a8df1fa570d1c022f | refs/heads/master | 2020-05-26T21:49:35.162250 | 2019-06-02T14:47:06 | 2019-06-02T14:47:06 | 188,386,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py |
print("Enter your marks:")
p = int(input("What's your marks for Physics? "))
c = int(input("What's your marks for Chemistry? "))
m = int(input("What's your marks Maths? "))
total = p+c+m
per=total*100/450
outof=150*3
print("----------------MARKS----------------")
print("Physics:", p)
print("Chemistr... | [
"noreply@github.com"
] | ahrooran.noreply@github.com |
3e2adce14d0306263670dc98a5d4ce21d48cf953 | 777e913ab14043774bcd1ce839bffca12efba424 | /home/sum-numbers.py | b5371413b384f99454a8a7408ecbc898414e83c5 | [] | no_license | PetrStar/py.checkio.org | 4e2c5c8d2045ecfa228e53645ec0dde78f7d253c | 83ec499baf874707e3f49910a2499c37d76b195b | refs/heads/main | 2023-01-23T15:14:58.031805 | 2020-12-03T19:57:51 | 2020-12-03T19:57:51 | 318,291,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | def sum_numbers(text: str) -> int:
return sum([int(word) for word in text.split() if word.isdigit()])
if __name__ == '__main__':
print("Example:")
print(sum_numbers('hi'))
# These "asserts" are used for self-checking and not for an auto-testing
assert sum_numbers('hi') == 0
assert sum_numbers... | [
"noreply@github.com"
] | PetrStar.noreply@github.com |
8bafb18de3c09b4e845ad8d2df44676d5617bfad | 3e3743928f43aaef5cfb72e257b6f091fc2a39cb | /src/whirlwind/tornado/carbon/persist.py | 6a4360ba75d08129ad746ac60e9c350f75c12a51 | [
"Apache-2.0"
] | permissive | bearstech/whirlwind-tornado | 3871862944f584816a1d90891cec815f64209e14 | 85b9e6b4b3413694cb6e5040ce5c72b6e5e436ac | refs/heads/master | 2021-01-18T14:10:05.666763 | 2020-10-13T09:47:05 | 2020-10-13T09:47:05 | 10,527,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import time
import struct
import os.path
import os
import whisper
from redis import StrictRedis as Redis
from whirlwind import target_to_path
METRICS = 'metrics'
PERIOD = 30
METRIC_WRITE = 'carbon.write'
METRIC_POINTS = 'carbon.points'
class Persist(object):
""" Sequential writer for Carbon server.
The sto... | [
"mlecarme@bearstech.com"
] | mlecarme@bearstech.com |
cc4e5646eb53c6b3516812713e6eb457669665f5 | 2e0ea50b016dc3c01bbaca98dd6806d5a1500b47 | /chart.py | 9240adcd3b56a13793c617d63f3fa0f40a75a789 | [] | no_license | ukey123/kusai | d55247826f7323ad534224cd022a3dc0495b3030 | dfe74c2144a09b0480ab95beb4b8171d714c97bd | refs/heads/main | 2023-02-17T08:59:54.224192 | 2021-01-18T06:00:46 | 2021-01-18T06:00:46 | 319,865,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | #!/usr/bin/pythonCGI
# -*- coding: utf-8 -*-
from jinja2 import Environment, FileSystemLoader
import sqlite3
import datetime
def mychart(environ, start_response):
env = Environment(loader=FileSystemLoader('/home/pi/Desktop/kusai/', encoding='utf8'))
tpl = env.get_template('template.html')
#テンプレートへ挿入するデータの... | [
"noreply@github.com"
] | ukey123.noreply@github.com |
dc49aee3b646e4e2864be55fd34519a351e9c3ad | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_noisy83.py | 997aaa1938fcb497d01eab2eff9be00509126ac8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bf9e83df90253e691d8d6d38926265f6665da03b | 4124e6d1a99b40e3e990915969899ba0ddfa9390 | /kaldi/feat/signal.py | 195e85ab397bed43abb22de02e195fa619ca6846 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | pykaldi/pykaldi | 23f0554072e99fbfa036be27a1b4d1e08f719525 | b482f79a334383a16a3805d658aa221ca3d23c6d | refs/heads/master | 2023-03-10T06:02:38.465779 | 2022-05-29T21:24:42 | 2022-05-29T21:24:42 | 94,806,200 | 1,019 | 283 | Apache-2.0 | 2022-09-18T13:34:33 | 2017-06-19T18:05:19 | Python | UTF-8 | Python | false | false | 236 | py | from ._resample import *
from ._signal import *
################################################################################
__all__ = [name for name in dir()
if name[0] != '_'
and not name.endswith('Base')]
| [
"dogancanbaz@gmail.com"
] | dogancanbaz@gmail.com |
e680ac98db693298f1bdeb9376fa11577feeb89a | c237e2f29eac2b92bd2b77d055e33cf760960284 | /todobackend/todo/serializers.py | dc073eafa9c9e17d9bdc60cc128b53a776392e7b | [] | no_license | razyesh/Django-TODO-React | 7f3293c858099f8656a287c8706f739b1d513077 | b8529138334710d582324f286c10a39197aca25d | refs/heads/master | 2022-12-11T11:20:33.622468 | 2019-06-28T10:28:03 | 2019-06-28T10:28:03 | 194,255,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from rest_framework import serializers
from .models import Todo
class TodoSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = (
'id',
'title',
'description',
'completed',
) | [
"pudasainirajesh504@gmail.com"
] | pudasainirajesh504@gmail.com |
739a670634ba4397de44127cb5d1bb66b9097341 | 16512126cbb4a6ba16ea06f11b760e59236baa3b | /a.py | d83227abc60a10620ef008a3fff2dc93f205ae5c | [] | no_license | Aliced3645/CodeForFun | c7fa30465fea75c23851859ced0b89ed7bce9615 | 247c0e896244c8aad324981e8e9ffae374af8f64 | refs/heads/master | 2020-04-06T04:30:08.735734 | 2013-02-28T21:57:37 | 2013-02-28T21:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
#TODO: try tornado
import sys
sys.path.append("/usr/local/lib/python2.7/dist-packages/")
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RedirectHandler):
def get(self):
self.write("Hello World")
application = tornado.web.Application([
(r"./", MainHandler),
])
if __name__... | [
"shu_zhang@brown.edu"
] | shu_zhang@brown.edu |
85a34ac290ea296fd6e980ca8103553fd134a68d | d0aac2763f9ca7a4c7e157b3fbf8037915ff4abe | /compass/migrations/0002_auto_20190501_1551.py | 887c4768277b5e547146f92bc3c3e53a40d58481 | [] | no_license | anishpatelwork/RiskCompass | 4563696a345cb9de7a380f4678029f9c96625a4a | 56de749fb0e1674e27dc731394b05ba7880507eb | refs/heads/master | 2022-01-20T08:49:59.737469 | 2019-05-10T10:58:58 | 2019-05-10T10:58:58 | 128,987,628 | 0 | 1 | null | 2019-05-10T09:17:28 | 2018-04-10T19:54:47 | Python | UTF-8 | Python | false | false | 507 | py | # Generated by Django 2.2.1 on 2019-05-01 15:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('compass', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='business_priorit... | [
"anish.patel2@rms.com"
] | anish.patel2@rms.com |
fa630ede4ee6b303b49df2800a562991fd84f857 | 53278297d92ee3431e9add18d4a5eaf8c240a987 | /streamlitWebCam.py | 3f7a772b2336066003d730503bc7f7f54e326f7a | [] | no_license | Islington1/dissertation_final | e1ecfa2c5499cce0110f8ac1942f35415edaca0c | f10041aefd038aceb5e2b123c6c25ffb22699824 | refs/heads/master | 2023-06-01T07:19:32.882539 | 2021-06-12T10:40:11 | 2021-06-12T10:40:11 | 376,184,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | import cv2
import av
import numpy as np
from streamlit_webrtc import *
def web_cam1():
class VideoTransformer(VideoTransformerBase):
def recv(self, frame: av.VideoFrame) -> av.VideoFrame:
net = cv2.dnn.readNet("weights/yolov3.weights", "weights/yolov3.cfg")
classes = []
... | [
"support3@nt.com.np"
] | support3@nt.com.np |
5bb26342a634735c0ded562718ea28a68b5e18e1 | 716b900a6a963b466596dd8dd3b9ceeef9404b76 | /scripts/neuralnet-letter.py | 2905b8a1764023e7add3e8ff07d7d3e4ebbcfb8d | [] | no_license | manleyroberts/mlproject1 | b7646c4de4b724e57eb997ce4ea79267f13eba53 | cbeed7d4bb87d187dcefa58df7599b36d80c9dcb | refs/heads/master | 2020-04-22T02:53:08.377447 | 2019-02-11T04:31:21 | 2019-02-11T04:31:21 | 170,066,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,088 | py | #Source: https://www.geeksforgeeks.org/working-csv-files-python/
from sklearn import tree
from sklearn import svm
from sklearn.neural_network import MLPClassifier
from sklearn.metrics import accuracy_score, confusion_matrix
import csv
import numpy as np
import random
import matplotlib.pyplot as plt
from sklearn.model_... | [
"manleyroberts@gatech.edu"
] | manleyroberts@gatech.edu |
8c3742b2407dc06b1267312520d773fc84bd1c77 | d9deb2cd70e97546d2208d4e60c70e1a8c51efba | /keras-resnet/cifar10_resnet50_keras_kaggle_opt.py | e3367dbb314445ba40af1ac4221c9609ef9242d0 | [
"MIT",
"Apache-2.0"
] | permissive | sashkarivkind/imagewalker | 5353893fd43a096f1844527ab43261d7fb788f24 | 999e1ae78cfe1512e1be894d9e7891a7d0c41233 | refs/heads/master | 2021-11-28T14:31:36.893022 | 2021-11-22T16:01:42 | 2021-11-22T16:01:42 | 166,010,202 | 2 | 1 | MIT | 2021-04-28T13:43:03 | 2019-01-16T09:16:05 | Jupyter Notebook | UTF-8 | Python | false | false | 9,226 | py | # %% [markdown] {"id":"FStp_vbUkRz5"}
#
#
#
# # Transfer Learning
# In this notebook, we will perform transfer learning to train CIFAR-10 dataset on ResNet50 model available in Keras.
#
#
# %% [markdown] {"id":"qpiJj8ym0v0-"}
# ## Imports
# %% [code] {"id":"AoilhmYe1b5t","execution":{"iopub.status.busy":"2021-08-02T1... | [
"sashkarivkind@gmail.com"
] | sashkarivkind@gmail.com |
a9844ec6bc76cbabb561aa8a324b90f85c935090 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DeleteSqlServerInstanceRequest.py | 8647a804d9271b31c253673d44db33fd213dcbae | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,604 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
25c3b42a397977592ebd6616aeefe441954c721c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/3D_ResNet_ID0421_for_PyTorch/pth2onnx.py | 344f0acb80d30eeb817bac80202a259a4e4fbed2 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,739 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
7459fac5b14862577f264dc372ac0888fef1bbd3 | bb397d825e5f8c8104426ec0ae7ecadcf1e1a408 | /files/nfs_install.py | 9b931bfbbda772e33bf381912be20aade123b261 | [] | no_license | AishwaryaBhargava/automation-of-different-technologies | ca29efe14e9c55ef2df0d1fa5e00a7e8f2cf67e3 | 30d288a60941ed7e5ec5529f822b4e85ad5146cc | refs/heads/master | 2020-05-27T23:40:43.547973 | 2019-05-27T14:09:00 | 2019-05-27T14:09:00 | 188,822,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/python2
import commands as sp
print("content-type:text/html")
cmd="sudo yum install nfs-utils -y"
output=sp.getstatusoutput(cmd)
if output[0]==0:
print("location:nfs.py")
print("")
else:
print("")
print("not installed")
| [
"noreply@github.com"
] | AishwaryaBhargava.noreply@github.com |
60b34903be6f840002151d09c5e58440231cbabf | 7cbc730e36312bfcbc850128aa362635709b21eb | /run.py | 83d38c2d880dc8d02a139b13235dd42e96f0663b | [] | no_license | rephus/healtcheck | 57a1f08d8b51c999bfe64da49a51bcf953eb032e | db9d4ad53d9cd882dcef4ea5f93db71567dbdcb3 | refs/heads/master | 2021-01-19T02:52:33.265742 | 2016-06-10T20:11:35 | 2016-06-10T20:11:35 | 60,874,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | #!/usr/bin/python
import requests
import time
import sys
import ConfigParser
# Global variables
todayDate=time.strftime("%Y/%m/%d")
todayHour=time.strftime("%H:%M:%S")
# Check status
def check (service, url,content):
start = time.time()
print "Checking "+service
valid = contains(url,content)
print "* Request... | [
"rephus@gmail.com"
] | rephus@gmail.com |
aae7dd2cfaf3a8d5e1004d485b4fefda31a6a855 | 3e432355cb71671e899c15a6ca973012f7a07be0 | /django1/urls.py | 658071eccfea6dfd537695a7d7f13e54156e3db9 | [] | no_license | rajeshpandey2053/Django-assignment-1- | b101250ec6da656e0400f84a8e85261259ce00c2 | 6c42fcb5012bb50b557cec029737661d05437130 | refs/heads/master | 2022-11-18T21:15:28.395827 | 2020-07-19T14:47:50 | 2020-07-19T14:47:50 | 280,885,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """django1 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... | [
"rajeshpandey2053@gmail.com"
] | rajeshpandey2053@gmail.com |
9199606a60e49fbfbf6d066642c2d3562eba52c2 | 8553312aad8af2a7371c2e5884561d3dcd00dda7 | /Model Fitting/Kfold/3 state 3 hill/fold 3/3state3.py | 63b65a59d787b1c774e541bdbedfa9b9b9753134 | [
"MIT"
] | permissive | keung-lab/Dynamic-Transfer-Functions | aa76125b228092d4af93172c9f051c6593b1f4e2 | 68c17a3ccfedab6625cc4d0c2e1c7983d7b46153 | refs/heads/main | 2023-04-09T15:03:48.667157 | 2021-07-20T16:50:33 | 2021-07-20T16:50:33 | 322,337,993 | 1 | 0 | null | 2021-07-20T16:50:34 | 2020-12-17T15:37:06 | MATLAB | UTF-8 | Python | false | false | 5,070 | py | import numpy as np
import pandas as pd
import matplotlib
import jupyter
import scipy
from scipy.integrate import odeint
#%matplotlib inline
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import sklearn
from sklearn.model_selection import StratifiedKFold
from mpi4py import MPI
impor... | [
"noreply@github.com"
] | keung-lab.noreply@github.com |
73c2c8db45940756b9d7256370367dd3f7dde382 | 6d906ae790de5494692bf6a12668d60418b1da72 | /govauction_load/load_test_file.py | c8ad61090d505bce78eaa9399afb8b0ddc07849e | [
"Apache-2.0"
] | permissive | lesiavl/selenium_perfomance_tests | 6c5407172bdf05a08b669b6f80bc287e94e34ef9 | 83cb1d734d6723cc5b6d6a8aa37b6598f06cbcfe | refs/heads/master | 2021-01-22T10:56:02.462717 | 2017-06-01T10:39:24 | 2017-06-01T10:39:24 | 82,050,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,288 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from page_objects import *
from selenium import webdriver
import datetime
import time
import Queue
import threading
import traceback
tenders = Queue.Queue()
tenders_ids = []
tenders_threads = 1
bids = Queue.Queue()
bids_failed = {}
runs = Queue.Queue()
class CreateT... | [
"lesia.velychko@gmail.com"
] | lesia.velychko@gmail.com |
5ec315cf056563ef4196d389d7e6b49012941112 | 9ee1e6efea3899edef676a13b3a5d5c38a5f9ce1 | /Task_Module01/ceknum.py | 7b21e220931176559fcd5418c4aa7774731c168a | [] | no_license | ksmrdn/Module01_Python | 8f455fb36b097edf6a40e53b1162ef4355668ab9 | dbde29247e8978876f6e1c71397297cfda016a3a | refs/heads/master | 2020-09-07T22:39:40.716886 | 2019-11-11T08:25:18 | 2019-11-11T08:25:18 | 220,932,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | num0 = 12
golongan = []
def prima(x):
if x > 1:
if x == 2:
a = True
else:
for i in range(2,x):
if x % i == 0:
a = False
break
else:
a = True
else:
a = False
return a
print(pri... | [
"kusumardanar@gmail.com"
] | kusumardanar@gmail.com |
fe0b784d9423f6752a2e04ea2db13d45f4526bf0 | 7249edf3365731c92a9c9c05db3186894306cc17 | /python/src/vmaf/svmutil.py | ca49e991943642c3fce7b7aca7f07566c7af3622 | [
"LGPL-3.0-or-later",
"Apache-2.0"
] | permissive | sunery/vmaf | 22e2f782549e1c71aa6f5160f26350e0aca06189 | 03eb8a4980b1bf2b3edd66767e67927109dbd9de | refs/heads/master | 2020-04-01T15:12:57.469291 | 2018-10-15T00:31:21 | 2018-10-15T00:31:21 | 153,327,009 | 1 | 0 | Apache-2.0 | 2018-10-16T17:32:53 | 2018-10-16T17:32:53 | null | UTF-8 | Python | false | false | 735 | py | # TODO: dependency on libsvm/svmutil needs to be properly done, this is a temporary workaround wrapper
from __future__ import absolute_import
import sys
from vmaf.config import VmafConfig
# This will work only when running with a checked out vmaf source, but not via pip install
libsvm_path = VmafConfig.root_path('l... | [
"zli@netflix.com"
] | zli@netflix.com |
a85f58e88b5664a708051c99c0c4ada535118d4e | 70121257e52e0fd2f0895414fcee3c991737443a | /python_recipes/danfo_csv.py | 96c22906850257b9b40aa400587b7180e3fa23bd | [] | no_license | OlgaBelitskaya/cookbooks | 2e54208bb5e5157814deea6ff71cd7ce5b1e4972 | 216dde3e5617203371ed4c4bb7d9e8391640c588 | refs/heads/master | 2021-07-11T15:56:44.923442 | 2021-03-25T08:38:46 | 2021-03-25T08:38:46 | 99,447,645 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from IPython.core.display import display,HTML
def danfo_table_csv(url,columns,header_font_size):
html_str="""<html><head><meta charset='UTF-8'>"""+\
"""<meta name='viewport' """+\
"""content='width=device-width,initial-scale=1.0'>"""+\
"""<script src='https://cdn.jsdelivr.net/npm/"""+\
"""danfojs@0... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
55dbe8317f1c57f0eda91ec6f4ea5d6a3355faf5 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Flickr/Places/FindByKeyword.py | c0620abf4ec0d8e85c197a86e1e3a6d28555d771 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# FindByKeyword
# Returns a list of place IDs for a query string.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Chor... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
51c528349ae5eff94470ab12a4bdbfcaee39eb2e | 39e5ba31a0b0389ebdd787231b05c58ad1f50aac | /6-输入与输出/1.字面量.py | fd88bc9bd8959244859538d7ebd647d7359d9f8c | [] | no_license | yicg/python_demo | 19f7f428bcf61c92cadf4469d89fb88e8fb84c30 | bcf9819ab21f8e28af5de4447a52a8c655d02278 | refs/heads/master | 2023-03-26T19:08:56.173250 | 2021-03-25T09:58:37 | 2021-03-25T09:58:37 | 343,789,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Author :yicg
@Time : 2021/2/18 下午2:16
@Version : 1.0
@Description :
"""
#1.格式化输出
name='lili'
age=20
print("my name is {},age is {}".format(name,age)) #my name is lili,age is 20
print("======================")
name_list=['zhangsan','lisi','wangwu']
print("my... | [
"yichunguangyx@163.com"
] | yichunguangyx@163.com |
75db8c0b74e36ae5d402823fe9e9d389fa1c33b4 | adc8c698d282cb6100560b22744c349fd2b471d2 | /src/PB_5917_Final_Task/5917_ip.py | 7cf9973082b9e31f6ad1d78621c8869c3f3d5904 | [] | no_license | atharvakarpate/E_Yantra_2019 | 468e4372ee131008ad62d292482a80b0a29f8910 | a02fd6ff6032527e12736b3c7d02c84d7377c8b5 | refs/heads/main | 2023-08-21T05:30:09.157633 | 2021-10-29T00:23:23 | 2021-10-29T00:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | #!/usr/bin/env python
"""
* Id : 5917
* Author : Atharva Karpate
* Filename: task_3_ip.py
* Theme: Pollinator Bee
* Functions: __init__,image_callback,Colorno
* Global Variables: red(Stores number of red Contours),redC(Stores the BGR value of red)
green(Stores number of green Contours),greemC(Stores the BGR value ... | [
"atharvakarpate@gmail.com"
] | atharvakarpate@gmail.com |
87d4a703cd60d8776b09c67b7e09adbf576a56ae | 5e2fc6d87f9c70bfd9c51daa29408d49796da7ce | /keylocker/__init__.py | 616eaa792ea408b5bc33773e17dd1531d548a021 | [] | no_license | vpuhoff/keylocker | cf2d9b6f028e190a32a0d056514f142a8b391b38 | 6134df1ee3c4c0c521f47d56d57a466b93212ae2 | refs/heads/master | 2023-09-01T08:56:39.085789 | 2021-02-10T06:48:52 | 2021-02-10T06:48:52 | 194,481,376 | 3 | 0 | null | 2023-08-01T22:58:12 | 2019-06-30T06:05:20 | Python | UTF-8 | Python | false | false | 2,835 | py | import pickledb
import fire
from cryptography.fernet import Fernet, InvalidToken
class Storage(object):
def __init__(self, filename='secrets.json', key_file='storage.key', key=None):
self.db = pickledb.load(filename,True)
try:
if not key:
with open(key_file,'rb') as keyf... | [
"vpuhoff@live.ru"
] | vpuhoff@live.ru |
e006c474da9752e4dc45b6db91e3485f58e9b8b6 | 048e8b68e5c5f447bea15f0932d06dd7e8b0bba0 | /BBS/settings.py | 9832763d9fa61bae620c1843e30fc400bf309604 | [] | no_license | jszccdp/BBS | 8f5f85c68e3bf5f814ea9b16c4e3c293edf5db5e | 8616c68d0a602b664b5850c5cf58618a10fc2532 | refs/heads/master | 2020-04-26T22:42:40.849583 | 2019-03-06T09:28:07 | 2019-03-06T09:28:07 | 173,880,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | """
Django settings for BBS project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
from d... | [
"1162219262@qq.com"
] | 1162219262@qq.com |
96b7ae9b557800edf96fa234ccdc6c5e23c59dea | 1125345341e496920b661e612cd67cdb96a1d170 | /createCampaign/parameter_tests/CREATIVE_NAME/test02_valid_p.py | 4718d851e9cdc50ac51047f4f44e5f3ae48e305b | [] | no_license | Stephen-Williams/swarm-qa | 0bac526f0ee44b8c3677fb35959e6f7d0e258be2 | 90e36b5eab475788d9ab54051ad9c2736f3633ec | refs/heads/master | 2021-01-01T20:11:51.033059 | 2015-07-08T16:07:06 | 2015-07-08T16:07:06 | 38,764,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | { 'all':
{ '0':
{ 'ADOMAIN': 'abc.com',
'ADVERTISER_CATEGORY': 'IAB8-5',
'APP_FILTER': 'sites',
'CREATIVE_ATTR': '0',
'CREATIVE_BASE_64': 'iVBORw0KGgoAAAANSUhEUgAAAUAAAAAyCAIAAACib5WDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAYHSURBVHhe7... | [
"stephen.williams@juicemobile.com"
] | stephen.williams@juicemobile.com |
864174abe531accd7b988c0891e93ed7128e2c7f | 859cfe4db3d1c42a0a17423ae86742726d15e642 | /Task3.py | 2a488b395a434a32c6f3cf76258a74108a6cc47c | [] | no_license | GQ312/Chapter1-Part2 | fd15d79792c61fc036dc806bc42e149c777eeea4 | 696fa7c3a46e79ba83b1d77530f7bcce815e2027 | refs/heads/master | 2021-03-06T21:24:39.322369 | 2020-03-10T05:03:11 | 2020-03-10T05:03:11 | 246,224,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | num = int(input("Write your number: "))
print("Next number: " + str((num - 1)))
print("Previous number: " + str((num + 1))) | [
"nurbolot0312@gmail.com"
] | nurbolot0312@gmail.com |
cf1c7ed666e3e2ffefa00c4742ed5302dc0b15bd | 8f580f80eae1f947ebb3fed099a996ba961dfe95 | /view/resources_rc.py | 7179cf4a2b5a045727fb4f05db70fd80865c4d6c | [] | no_license | ankhbold/sesmim_training | 45efb172b8269708cc4a352fa944a5c2b35936a1 | 162ba8fe798c565fbd46f6b5f06f0d8aa17d2962 | refs/heads/master | 2020-04-28T08:01:02.805373 | 2019-03-19T00:34:19 | 2019-03-19T00:34:19 | 175,111,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,103 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x06\xa7\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00... | [
"aagii_csms@yahoo.com"
] | aagii_csms@yahoo.com |
1fa4211910a147f06100b61c294ba7cdcfedf97e | 91d45f1a41e092ee2ed992c8b1f7f24b0c12ac4a | /DIM/coursework/rct/models.py | fc77802354bd147008cb6f385e2bddc199484018 | [] | no_license | MatthewPaterson/DIM3 | 94d7c4a9a3d0cdd67ec57f76e8c83f4730a8d376 | 7bf8c42d17add5e56a4342b2fb408ce2bdf98c4f | refs/heads/master | 2021-01-01T16:55:28.357095 | 2014-02-04T09:01:10 | 2014-02-04T09:01:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
def __unicode__(self):
return self.name
class Page(models.Model):
category = models.ForeignKey(Category)
title = models.CharField(max_length=128)
url = models.URLField()
vie... | [
"matty.mep@gmail.com"
] | matty.mep@gmail.com |
a3a07052f03a7dc28d6f2c41f80889cbc46bc905 | 32c6590127686114bfacff11fa7cd646025d3819 | /test_project/test_app/models.py | e45ce8711f5854e739457ed3382e0356433d6b1c | [
"BSD-2-Clause"
] | permissive | revsys/django-test-plus | 42cc6cddde30f561bec91294d2e85c21cbc62887 | 9cfb0c865b1dcad1ca6c9c4717d67ea8d476269c | refs/heads/main | 2023-08-29T03:52:59.089300 | 2023-07-11T11:37:47 | 2023-07-11T11:37:47 | 36,131,033 | 618 | 75 | BSD-3-Clause | 2023-07-11T11:35:24 | 2015-05-23T16:08:52 | Python | UTF-8 | Python | false | false | 154 | py | from django.db import models
class Data(models.Model):
""" Simple model to test our query assertions """
name = models.CharField(max_length=50)
| [
"frank@revsys.com"
] | frank@revsys.com |
44b8b51883b7aebaf72aacdb0dab83ffcaaf63fd | 0e62ab1b733a60ec4c41e9a7a4c667b53be02964 | /functional_tests/integ_tests.py | e7ea53c275716de573bb69f22ff784ecf3f1dce7 | [] | no_license | julianaskubs/Python-Arrays | 3e3822dd3b63a688c7078e45044fc2452f96e554 | 741703c26a64e965444a3a0add5c355061a3888e | refs/heads/master | 2020-12-22T17:35:51.432223 | 2016-08-15T21:17:18 | 2016-08-15T21:17:18 | 65,694,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | from main.matrix import RunProgram as RP
import unittest
class MatrixIntegTest(unittest.TestCase):
def test_steps_one(self):
cmd = "I 5 6"
matrix = RP(prompt=False, cmd=cmd)
cmd = "L 2 3 A"
RP(prompt=False, cmd=cmd, matrix=matrix.matrix)
cmd = "S one.bmp"
RP(prompt=... | [
"julianaskubs@gmail.com"
] | julianaskubs@gmail.com |
053f64e6385d70d8e49c045ff44d38e56873a99a | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/mypy/typeshed/third_party/2and3/dateutil/utils.pyi | 3eefd2e48ba5311cbdb709991a6815cdd94459e1 | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | pyi | from typing import Optional
from datetime import datetime, tzinfo, timedelta
def default_tzinfo(dt: datetime, tzinfo: tzinfo) -> datetime: ...
def today(tzinfo: Optional[tzinfo] = ...) -> datetime: ...
def within_delta(dt1: datetime, dt2: datetime, delta: timedelta) -> bool: ...
| [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
4e65987083f85dd67d34e904f53f16c42343b409 | b192e89439bcb698a2c36d8fef77ed296efa6e92 | /src/dataStorage/admin.py | f113c2f3df91a438c492e1c95253047d7b5d7648 | [] | no_license | rshnGhost/mTSA | 091950f3f4e77b03add97135cbaf6f91acded683 | 269ce5d69c025a095df63fd4c891c4422ce4c1f1 | refs/heads/master | 2023-06-30T11:16:29.650723 | 2021-08-11T08:31:59 | 2021-08-11T08:31:59 | 290,937,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import phoneData
from .models import phoneImg
from .models import phoneBench
from .models import PosTweet, NegTweet, NeuTweet
from .models import cache, phoneWeb, antutu
class PosTweetInline(admin.TabularInli... | [
"31742263+rshnGhost@users.noreply.github.com"
] | 31742263+rshnGhost@users.noreply.github.com |
649a77c31f62e5ca93fedfcab0d01dffe100e65d | 30231faf0439d40263ea033aa6692d50d995dcdf | /test/functional/test_framework/test_framework.py | afc326a6746f48448f0dbba2366c41c3f12f8cf0 | [
"MIT"
] | permissive | zuka2512/Sosscoin | c6f59fb07ce3c88839f124b273c9bfc2fa1ffe26 | 8e81695c4606405fbf3ba41ab2bb56cd09bd631e | refs/heads/master | 2020-06-04T09:37:12.821794 | 2019-06-14T15:55:36 | 2019-06-14T15:55:36 | 191,967,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,225 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Base class for RPC testing."""
from collections import deque
from enum import Enum
import logging
impo... | [
"38661023+zuka2512@users.noreply.github.com"
] | 38661023+zuka2512@users.noreply.github.com |
f693ddebd56136aac4d222c496128c1c7233c17b | 108fac5bd6bc1893953768f8c3aff4b359e2536b | /FreeCodeCamp/01/draw.py | 1af7fa9345e6018816fd9a2abe38d0018bed5ac8 | [] | no_license | rafael-miranda10/freecodecamp_python_opencv | 2bdbe0326e9d6732674aea405d6db70dd561b9ad | 0f52f2a739c4999a375a3e522a561ad74108ea9f | refs/heads/main | 2023-06-02T20:57:56.256127 | 2021-06-19T18:30:49 | 2021-06-19T18:30:49 | 378,475,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | import cv2 as cv
import numpy as np
blank = np.zeros((500,500,3), dtype='uint8')
cv.imshow('Blank', blank)
img = cv.imread('photos/3.jpg')
cv.imshow('Image', img)
#1 - Paint the image a certain colour
#blank[:] = 0,0,255
#blank[200:300, 300:400] = 255,0,0
#cv.imshow('Green', blank)
#2 - Draw a Rectangle
#thickness... | [
"43150739+rafael-miranda10@users.noreply.github.com"
] | 43150739+rafael-miranda10@users.noreply.github.com |
3c10deb4991c6f62d15eb76b3a5f1518872491c7 | 112cdec2db27fe43f18f37a4ba785252b323f469 | /python/oneflow/test/modules/test_prelu.py | 351b9aa625a26cfaf11e626ea54d2881e37349f5 | [
"Apache-2.0"
] | permissive | flowone/oneflow | 6be8da189ac6b430d4c4b168afe8184d2db64556 | 3d24b37500292f332727ba69ef86d4809bf6ad67 | refs/heads/master | 2023-07-19T14:12:04.943438 | 2021-09-14T08:32:08 | 2021-09-14T08:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | flowone.noreply@github.com |
23d3b4c59de4b0bd6da14a5bcc75102bbcc7d84e | a12c1fd7e29891192f295f21823b90b10dc08885 | /Backend/env/bin/python-config | 87aa835ffe5beecf29d4152416ad88c4bff3f5d1 | [] | no_license | DaVinciTachyon/Swiftly | 35bb892550c43a9f1df800680956b15451e720c6 | f815bbb75e72aad14ac73abf87eeda85aecf7ca8 | refs/heads/master | 2020-04-21T02:26:05.065838 | 2019-04-12T10:06:31 | 2019-04-12T10:06:31 | 169,254,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | #!/home/darts/Documents/Swiftly/Backend/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.... | [
"davincitachyon@github.com"
] | davincitachyon@github.com | |
fedbec9da50d2695420b0de574fae1ca2f092485 | 18cd0573f59d44a7cba7c8811bd76f42ddbc1870 | /reg2.py | 15fe93adb56bf92ac8b150fa1d0d0a715e70a00e | [] | no_license | mikronavt/pycodes | 775e23a10263e963b153e001bb6e9e426ea90acb | cc9764ff89711034ff47e991fe8f8cf964e73d89 | refs/heads/master | 2020-12-24T09:55:10.362058 | 2016-11-09T07:12:16 | 2016-11-09T07:12:16 | 73,259,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import sys
import re
for line in sys.stdin:
line = line.rstrip()
p = re.compile(r'\bcat\b')
m = re.search(p, line)
if m is not None:
print(line) | [
"chgb-tol@ya.ru"
] | chgb-tol@ya.ru |
e2f58821bdc51384bfad58f2da79ba7208b170c6 | a114b97fbc3b1a46e5c7f0f9053611205c98ebf4 | /scenarios/testsenery1.0/kongfen/空分测试与统计/change3.py | 95a988d7f5fa96a66e38432ae300427577675791 | [] | no_license | forme12/qualnet- | d4a76f0916623227dfd51b4ed6d23af052e3a69d | 4d8fd82b9d16633f8773f7953c8cc2e0b60a230f | refs/heads/master | 2021-11-03T08:47:08.491807 | 2019-03-25T11:40:26 | 2019-03-25T11:40:26 | 177,569,714 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import os
f = open ('kongfen1.0.app')
lines = f.readlines()
f.close()
for line in lines:
if(line.find('CBR 55 76 1000 512 10 ') == 0):
line = 'CBR 55 76 1000 512 10 %s' % ('30MS 1S 50S Unicast 10S PRECEDENCE 0 ',) + '\n'
if(line.find('CBR 54 80 1000 512 10 ') == 0):
line = 'CBR 54 80 1000 512 10... | [
"2081444098@qq.com"
] | 2081444098@qq.com |
16e32f627660172ba62c9c8293a314dfcb39e346 | 436a9df91964440654da2af8f52d65e28f3a9347 | /flask_server.py | 300040c4c12178f36c469f4f768944ee91f570f5 | [] | no_license | ras9841/TerMINIONator | f7fd481a8db92de5b50086ce736a2b1c32fd2523 | 9dbbfadb09677fd564f1441933290eb0745c3a6e | refs/heads/master | 2021-01-22T06:07:05.597614 | 2017-02-12T16:50:11 | 2017-02-12T16:50:11 | 81,735,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from flask import Flask
from flask import render_template, request, url_for, redirect
import sys, os
from record import record_audio
from text_analysis import run_analysis
app = Flask(__name__)
@app.route('/record', methods=['GET', 'POST'])
def record():
record_audio(5.0)
os.system("sh speach_text.sh")
u... | [
"ras9841@rit.edu"
] | ras9841@rit.edu |
11f73fbe56bc17b3b0a1fd41fe7b785b16cb6ab0 | 4a6d784fd44b57d6b2aabae9d2381884cc880aea | /w_form_cuotas_vencidas_30dias.py | 53a4658d5a415681d07bdf21ca61bb9eac419f7d | [] | no_license | blueautomatic/Slam_Sistema_creditos | 0e46c2f23d396793122739f838073eff77df88e3 | 7eb20a90abce53f10dcd18e3d47e9a5f330acbbd | refs/heads/master | 2020-03-26T19:13:36.634824 | 2018-02-05T15:46:42 | 2018-02-05T15:46:42 | 145,254,325 | 0 | 0 | null | 2018-08-18T21:37:23 | 2018-08-18T21:37:23 | null | UTF-8 | Python | false | false | 13,010 | py | import sys,datetime,os
from PyQt5.QtWidgets import QApplication,QDialog,QMessageBox, QTableWidgetItem
from PyQt5 import uic
from form_cuotas_vencidas_30dias import Ui_form_cuotas_vencidas_30dias
from N_cliente import N_datos_personales_cliente, N_party_address, N_party_otros, N_datos_laborales, N_party_garante,N_party_... | [
"lriccombene@gmail.com"
] | lriccombene@gmail.com |
00380198139ffebd0a0320d358b25b1b10ed5d66 | 9b8367ae9b5e9a7b9864c399064950bf6c2f8a12 | /python/ray/experimental/client/api.py | 66ec61c17ab21af933b936f249b82e55e3f10b65 | [
"Apache-2.0",
"MIT"
] | permissive | oliverhu/ray | c69f9c48a7869b0231ccf6c88e3252ba579b49d3 | 2f8e308444bbf552d6bf8d3167d694847e85ec63 | refs/heads/master | 2023-02-17T02:25:26.564474 | 2020-12-10T01:19:36 | 2020-12-10T01:19:36 | 295,881,584 | 0 | 1 | Apache-2.0 | 2021-01-05T05:19:30 | 2020-09-16T00:30:49 | Python | UTF-8 | Python | false | false | 4,472 | py | # This file defines an interface and client-side API stub
# for referring either to the core Ray API or the same interface
# from the Ray client.
#
# In tandem with __init__.py, we want to expose an API that's
# close to `python/ray/__init__.py` but with more than one implementation.
# The stubs in __init__ should call... | [
"noreply@github.com"
] | oliverhu.noreply@github.com |
7003c2b3092fee3719bcdfa6911960bce8955313 | 151ed184329fa65ef0a22a76336984ae41587db6 | /GenerateCSV.py | 9e124f0efe5dffe3f6b763d72545a6557cf28a47 | [] | no_license | SherDG/Oxygen2020 | ce05fb0142009339c83dfe4bf898217a0159a8ba | 3ca80138ed515d396152933b8a3a9e79e92d0151 | refs/heads/master | 2022-12-19T15:35:07.630301 | 2020-09-19T09:00:57 | 2020-09-19T09:00:57 | 289,451,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #!/usr/bin/python
# Import of the libraries
import csv
import random
# def - is a function
def createCsvLine(arr):
# print(arr)
return '"' + '","'.join(arr) + '"\n'
#number of the inserts
records=10
#print("Making %d records\n" % records)
# names of the columns
fieldnames=['id','name','age','city']
#open fil... | [
"dsherstiuk@cloudlinux.com"
] | dsherstiuk@cloudlinux.com |
b2698d399ebf21fb08f31d626543f73cb31cc86d | 8888ef245f962b7745ce3d95ff8412618cb7efad | /NLP_2015/4/section4.py | 8c60240e273ddfac67b092387319f39bd2de84f8 | [] | no_license | tegetege/tegetege_NLP_100 | 6b3305479426c61660362f0a8c8c8ca3a803636d | 5d90509db268d5977a369a157f636c718955dd9c | refs/heads/master | 2021-05-05T04:27:32.074757 | 2020-09-27T09:20:14 | 2020-09-27T09:20:14 | 118,591,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,433 | py |
class Section_4():
'''
[問い]
夏目漱石の小説『吾輩は猫である』の文章(neko.txt)をMeCabを使って形態素解析し,
その結果をneko.txt.mecabというファイルに保存せよ.
[使用コマンド]
$mecab -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd neko.txt -o neko.txt.mecab
辞書にはオプションで、"mecab-ipadic-NEologd"を利用
'''
'''
[概要]
・neko.txt ファイルをmecabに通したものがneko.txt.mecab
・self.wo... | [
"t.tose@uec.ac.jp"
] | t.tose@uec.ac.jp |
1b16e6e3300a0e361ece4ca07a41c908f4cba675 | 02717951f753acec835bfe3630ccb8bb89e213d1 | /lib/vcf_header_clean.py | 2dfb95603aa09ec5b128490f16b3492c3ad31f0a | [
"MIT"
] | permissive | uiuc-bioinf-club/vcf_anno | 6b87246d3e6e258c53de560bbe530accd30a9968 | 9fbf0d7597ec5f66a81b91a7ff0c3fd33d865640 | refs/heads/master | 2020-04-16T05:27:48.866844 | 2019-01-11T20:48:38 | 2019-01-11T20:48:38 | 165,306,182 | 0 | 0 | null | 2019-01-11T20:35:51 | 2019-01-11T20:35:50 | null | UTF-8 | Python | false | false | 2,201 | py |
import re
def vcfheader_clean(IN_vcf_file, OUT_vcf_header_file):
"""
Check whether a vcf file contains description with comma in them, which may raise warnings for some vcftools version such as vcftools-0.1.16
"""
#IN_vcf_file = vcf_file
#OUT_vcf_header_file = './header_commaclear.tmp.vcfheader'
... | [
"wingsyiz@gmail.com"
] | wingsyiz@gmail.com |
1d2e0f0ee19889f0cf2814a73fdeea1efce3039c | 0086c318ab4e2f753e91cafbcf6964c592e8c90e | /basic_app/forms.py | 3ce27d669faa19380d77723e5ed5542ccac7fd64 | [] | no_license | yogeshshukla/django-example | 045c7b6d812cdb8d9caf0efae6bfa09fcf694747 | 6c7d752511ad4f9e16a452e950711f0c9ddb6c5b | refs/heads/master | 2022-07-31T21:57:14.956530 | 2020-05-18T10:38:26 | 2020-05-18T10:38:26 | 264,907,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django import forms
from django.contrib.auth.models import User
from basic_app.models import UserProfileInfo
class UserForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
class Meta():
model = User
fields = ('username', 'email', 'password')
class UserProfile... | [
"yogesh.shukla@infobeans.com"
] | yogesh.shukla@infobeans.com |
11f463800b1550cd3bd4d4ae92bec076ebab5ff8 | 3bf004648ac22448cef6912e775bab46148d0978 | /manage.py | fa5e5760efd27b0af28aab7f5fca8b684ef40f92 | [] | no_license | ncats/zebra_rank | 2f5959cf1886318b66a8b464095156ea4ee7aece | d8fd697c54941cf0739dc0e1a68642113202cadf | refs/heads/master | 2022-11-28T03:11:01.070696 | 2020-08-07T21:39:34 | 2020-08-07T21:39:34 | 281,787,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 630 | 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', 'zebra_rank.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"caodac@gmail.com"
] | caodac@gmail.com |
8cae290d2e0f4814c027458fafbd56b76c6c8859 | e99bc88c211c00a701514761fdfcb9b755e6de4e | /payloads/oracle/reverse_sql.py | c8a4d05996c833f8976901daa94da532f212e589 | [] | no_license | Wuodan/inguma | 177f40f636d363f081096c42def27986f05e37e7 | c82e7caf86e24ad9783a2748c4f1d9148ad3d0ee | refs/heads/master | 2020-03-26T21:52:28.421738 | 2013-03-20T20:45:13 | 2018-08-20T12:19:30 | 145,413,992 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/python
"""
NOTE: Should be rewritten from scratch!!!!
"""
import sys
sys.path.append("../../lib")
sys.path.append("../lib")
sys.path.append("lib")
import run_command
from oracleids import randomizeSpaces
data = """
DECLARE
data varchar2(32767);
v_ret varchar2(32767);
len number;
conn utl_tcp.con... | [
"muts@kali.org"
] | muts@kali.org |
96c1cabf5d959dc6e574d2108c2fb2098c5f8b1f | a6a946586d91307c4d84d5d3ed9f0d1e7db6cc0b | /newvenv/bin/python-config | 02a31f44f8bd03cfea3297049e7fc189f4500d93 | [] | no_license | kibach/saera_web | 8f47f7062252628d4938059bd015127845b573ba | 94cb86cbbe3061e57ce597e5e45641ebcd85eda7 | refs/heads/master | 2020-12-25T04:21:26.817468 | 2016-06-06T17:28:52 | 2016-06-06T17:28:52 | 60,018,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | #!/Users/Vera_M/labrab3/newvenv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info... | [
"theassd1337@yandex.ru"
] | theassd1337@yandex.ru | |
d6a5e7f3d5471a1459d2abddaf8a4b271d588aa2 | a0af7c96805b17741675b8ecdf3f3fdc6d149c61 | /simulate.py | c831cb6c3c278768cdd34c02e4ab76032aa921b3 | [] | no_license | ajwood/Group-Dynamics-Simulator | 7e72cf007771df62c23eb2bc6bae7f324f3fa2d0 | fc0a58e83708a8127db0928001f7af9f9fcf60f5 | refs/heads/master | 2020-05-15T10:11:38.817050 | 2012-04-02T01:13:53 | 2012-04-02T01:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,876 | py | #!/usr/bin/python
import pygame
from pygame.locals import *
from boxes import SheepBox
import time
import os
import sys
import numpy as np
import itertools
import math
from functools import partial
import collections
class GameMain():
def __init__( self, color_bg=(0,0,0) ):
pygame.init()
pygame.font.init()
... | [
"ajwood@mta.ca"
] | ajwood@mta.ca |
b2149ffcc18045825f21ffeaf5c3673ba7206c0c | 56916eb9752cce2b7c48bf356e71cf0720a82126 | /Python-Programming/primeOrNot.py | af3d24f322d206a1d8594c7358406a28d4bbce40 | [] | no_license | pemagrg1/tkinter-sample-code | 8916e10f4b859862dd1031c759dd61292eb99fc4 | f66f79dd421cf83f18877aec0d58a8790adcc80d | refs/heads/master | 2022-04-29T15:52:00.893059 | 2022-03-29T05:40:09 | 2022-03-29T05:40:09 | 130,752,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # Check if given number is prime or not. Ex Prime numbers: 2, 3, 5, 7, 13
i, temp = 0, 0
n = int(input("please give a number : "))
for i in range(2, n//2):
if n % i == 0:
temp = 1
break
if temp == 1:
print("given number is not prime")
else:
print("given number is prime")
| [
"pema.grg1@gmail.com"
] | pema.grg1@gmail.com |
d89d258c7988794ab7a17bb1bc243baa9f8719ed | 6c563ee5d6018d08e1ddc414592e1e23c06c60cc | /setup.py | 3b4d2dccece35687f3e583454df3533ce809f197 | [
"MIT"
] | permissive | cesarfm/pyimgy | b3b3b92226fb9dfb8ea74dd2e26fdb6bc7795fc1 | ce333acc183b787b46b95bd8e44dc6679fd1547f | refs/heads/master | 2022-11-24T20:15:11.736867 | 2020-01-29T08:26:33 | 2020-01-29T08:26:33 | 218,964,448 | 2 | 0 | MIT | 2022-11-22T05:31:09 | 2019-11-01T10:28:34 | Jupyter Notebook | UTF-8 | Python | false | false | 1,490 | py | #!/usr/bin/env python
"""
# pyimgy
A small library of image tools for Python
## Features
- `ImageConverter`: a universal, extensible component for easily converting images to different types, array shapes and normalizations.
- `core`: seamless conversion between numpy and Pillow; annotations for conversion and auto p... | [
"cesar.at.fuentes@gmail.com"
] | cesar.at.fuentes@gmail.com |
a4a6857da44652a4332705772a0d0471a535883c | 08a029abcb595e1ef26ac4cb5751976ce17706ac | /main.py | f1cab476053a12360c9b940c38c26f437c05feed | [] | no_license | 221294583/danmu_cracker | fb96a99f77b8c7afd97fd2f0058c582653c77529 | 26e28846876b0b03410cf65f88fd2fc32a7e1fc1 | refs/heads/master | 2022-12-24T13:24:27.135703 | 2020-08-27T09:04:50 | 2020-08-27T09:04:50 | 263,972,990 | 2 | 2 | null | 2020-08-16T03:06:49 | 2020-05-14T16:51:55 | Python | UTF-8 | Python | false | false | 1,266 | py | import numpy as np
import getcomment
#import crackcrc32
import visit
import crack
def process():
videocode=input("请输入视频地址:")
list_ini=getcomment.getlist(videocode)
list_ini.soup()
list_ini.finder()
list_ini.getmark()
bullet=(input('请输入要查找的关键词:'))
all_bullet=list_ini.filte... | [
"noreply@github.com"
] | 221294583.noreply@github.com |
a9c2ba91d8e2941c83227620c6cba49e96c59c48 | 9040048fd225aa3b755385ce8c14053d6e19f193 | /json_to_texts.py | 38f17d22dd6a20bd1016699c8439de13148f7a4e | [] | no_license | fireae/PageLayoutAnalyze | af13896a61286eb13a5490b8c097d5b7bc199650 | 05b6907ce329b7b827b21059a209cb93d348cccd | refs/heads/master | 2020-06-07T11:02:22.166135 | 2019-03-17T08:47:01 | 2019-03-17T08:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import json
data_set = open('D:\Coding\\tensorflow-deeplab-resnet\dataset\\test.txt', 'r').readlines()
images = [image.split(' ')[0].replace("/JpegImages/", "").replace(".jpg", "") for image in data_set]
with open('predicted_boxes.json') as json_data:
d = json.load(json_data)
save_dir = 'D:\Coding\Obje... | [
"quoccbinh@gmail.com"
] | quoccbinh@gmail.com |
01afb879d493cb53f44e6bc66aeb36232e02039c | 28725525432ae67126ba48006361f939a35a8c2b | /imama/forms.py | 689ac60ca8e1597306fdc898b4747ff55d388ee6 | [] | no_license | ClaudiaStrm/cadastro-imama | 8d5083e8402cdf58818db01c62941c2ad6b71ddb | 2cd29858fed3565d400b4016a8747c50f2286058 | refs/heads/master | 2021-09-14T04:26:45.275044 | 2018-05-08T13:03:47 | 2018-05-08T13:03:47 | 110,761,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from django import forms
from .models import Paciente, AmigoRosa
class PacienteForm(forms.ModelForm):
class Meta:
model = Paciente
fields = ('nome', 'local_palestra', 'data_nascimento',
'sexo', 'etnia', 'telefone', 'celular', 'email', 'endereco',
'cidade', 'contato_nome', 'contato_t... | [
"claudiasm@protonmail.com"
] | claudiasm@protonmail.com |
cbbe67c6d8b42f1f434378ce427870868349c359 | 4a806e7149bc6ee784e72ac8be068953180bf202 | /app01/migrations/0001_initial.py | 5e04b1a47e8c96d5ce2fdff23323bdd00efc010c | [] | no_license | aiwenfeixiang/highcharts | 9f99e63c9fc68a2e8b16f05bc17dd825f24f6402 | 3673b9de70582736d67cf672e43717a7da2845eb | refs/heads/master | 2020-09-09T12:19:01.303973 | 2019-11-13T11:42:46 | 2019-11-13T11:42:46 | 221,444,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-11-06 11:01
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"853648122@qq.com"
] | 853648122@qq.com |
acdee8e7dc59c9448b02b36d294aed46fbe74f2f | 0ca3a635fe2358ae562c04516226753fcd4a6729 | /src/create_generators.py | 64893b0a27c4158567b3833c44c58fc9d82963d0 | [] | no_license | YL1113/bert-multitask-learning | 9302037537c9c50a49ba2bb53a2f1db15904c7e2 | 182cb78efba46905cc1a804dcd7771b40475e874 | refs/heads/master | 2020-04-29T16:57:56.837957 | 2019-03-18T07:06:05 | 2019-03-18T07:06:05 | 176,280,952 | 1 | 0 | null | 2019-03-18T12:32:51 | 2019-03-18T12:32:50 | null | UTF-8 | Python | false | false | 16,070 | py | import random
from copy import copy
import numpy as np
import tensorflow as tf
from .utils import (punc_augument, tokenize_text_with_seqs,
create_mask_and_padding, create_masked_lm_predictions,
truncate_seq_pair, add_special_tokens_with_seqs,
BOS_TOKEN, EOS_... | [
"junpang.yip@gmail.com"
] | junpang.yip@gmail.com |
50c69f457a69549e37c8d673248b6a8b5ea1b3a8 | 8f02d21497912679d6ab91ea382ac9c477bda4fe | /setup.py | fb31227d6331999511c7297da29c6fb9b29c9e53 | [
"MIT"
] | permissive | DouglasWilcox/tpRigToolkit-dccs-maya-plugins-rbfsolver | ae2291f3e7117010341faeb7881998ec885dc216 | 3503c9b3982fe550a3d53dde79d3bf427c1b2289 | refs/heads/master | 2021-03-13T14:24:55.464354 | 2020-02-11T00:28:31 | 2020-02-11T00:28:31 | 246,688,218 | 1 | 0 | null | 2020-03-11T22:00:02 | 2020-03-11T22:00:01 | null | UTF-8 | Python | false | false | 104 | py | from setuptools import setup
from tpRigToolkit.dccs.maya.plugins.rbfsolver import __version__
setup()
| [
"tpovedatd@gmail.com"
] | tpovedatd@gmail.com |
e55349cdae31ad6838c68bcf8a78353c4625794a | 1e0355b293100873cedfcac789655a35180781db | /BOJ1541.py | 80f1eee1110f147baa91c39f0bbea9e2989c2d24 | [
"MIT"
] | permissive | INYEONGKIM/BOJ | 47dbf6aeb7a0f1b15208866badedcd161c00ee49 | 5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc | refs/heads/master | 2021-06-14T13:50:04.124334 | 2021-03-09T14:04:14 | 2021-03-09T14:04:14 | 168,840,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=input().split("-")
if s[0]=="":
res=0
else:
res=sum(map(int,s[0].split("+")))
for i in range(1,len(s)):
res-=sum(map(int,s[i].split("+")))
print(res)
| [
"noreply@github.com"
] | INYEONGKIM.noreply@github.com |
8d796048dae5c5b5f7ff417ad810b0eb8ceedf95 | 08d6297654bce1043c7a1f466d1e94a0edbe127b | /DatabaseConnectionPool.py | 1a520abddc676328652b298dcc47c1b901a63d06 | [] | no_license | xzf199358/grace_jiubao | 6db0a21aa8ef8e8d4639bf22dcf5682993005e5e | afc5274e4f9f8adebae3940256a61adaec8443a5 | refs/heads/master | 2023-01-09T12:51:21.034087 | 2020-11-14T09:07:51 | 2020-11-14T09:07:51 | 312,781,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | # -*- coding: UTF-8 -*-
import sys
import psycopg2
from LoggerModule import Logger
from ConfigManager import ConfigParameter as configs
from DBUtils.PooledDB import PooledDB
import ToolFunctions
class DatabaseConnectionPool:
pool = None
@classmethod
def create_pool(cls):
try:
cls.poo... | [
"1217158614@qq.com"
] | 1217158614@qq.com |
adb466e272744c048c455a8aebc7292a0997e0cf | da932161e15ddcd9dcbd50ccc2503c85cfb9d5ab | /ces_admin/management/commands/hash_identities.py | 58f40217c392cf5305c477c61c2f729cf311dd17 | [
"MIT"
] | permissive | datamade/coordinated-entry-screening | 9c7c01a4f5df22cb4de509f510b93f74a22ee3db | 29724ee36530f81c8b9a2d4720963de619322d12 | refs/heads/master | 2020-03-23T20:56:19.559632 | 2019-07-15T01:25:09 | 2019-07-15T01:25:09 | 142,072,104 | 2 | 0 | MIT | 2019-07-15T01:25:10 | 2018-07-23T21:37:19 | Python | UTF-8 | Python | false | false | 2,070 | py | import datetime
import hashlib
from django.core.management.base import BaseCommand
from django.db.models import Q
from django.contrib.auth.hashers import make_password, check_password
from rapidsms.models import Connection
from decisiontree.models import Session
class Command(BaseCommand):
help = '''
Th... | [
"reginafcompton@gmail.com"
] | reginafcompton@gmail.com |
816f788b6bec5124501507fbd09cda758212d57a | 9a140773c0e1267ab39f09f363efd412bbcc390e | /McKinseyHackaton/Stacking/meta_classifier.py | 21a1367fe9b63245c6b098f2409308412a25f8f3 | [] | no_license | dkajtoch/Data-Science-Projects | 5aa904bad5b7ee88a5ab0dd2695d3e7341f1e000 | 3d17081686924214ae509f91ede045ad5d7c129d | refs/heads/master | 2020-03-23T10:56:02.302754 | 2018-08-12T16:11:23 | 2018-08-12T16:11:23 | 141,471,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,629 | py | import pandas as pd
import numpy as np
import sys
# --------------------------------------------------
# Custom scorer
# --------------------------------------------------
def probability_change(p, x):
from numpy import exp
res = p*(1. + 0.2*( 1. - exp(-2.)*exp( 2.*exp(-x/400.) ) ) )
return res if res<=1.... | [
"dkajtoch@gmail.com"
] | dkajtoch@gmail.com |
ac88c82105770dd7f62ae1df6606974dad116b74 | 38969896f332a1d9997ecc946ac805e36297d472 | /scripts/change-background.py | bc317cb6356ee601745634906fd540999d1f3a34 | [] | no_license | tml/forkmydots | e823c68aadda9fbd6cfe6de3568ad16b9352fe57 | 8ff97a587f4ab679fd9ce11af11632563458dfb3 | refs/heads/master | 2021-01-18T07:49:39.315566 | 2013-05-21T16:34:46 | 2013-05-21T16:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | #!/usr/bin/env python
#
# change-background.py
#
# A script to change to a random background image
# Originally written to use gconf to accomplish this end, it now uses
# xloadimage -onroot which is slightly less presumptuous about how the user's
# system is set up initially (considering that xloadimage is a much sm... | [
"waynr@sdf.org"
] | waynr@sdf.org |
285b78fc7266d2063001632fedcddacbfe321900 | 2d9b490f7aa764aca222baa158cc6e071e159450 | /persistence/xml_parser.py | 6deb416ef66e738eb2a65b6e274c1ee2a4e3ef1c | [] | no_license | Phaetec/rpscene | 44e81b71441bfe40be73b7b94cf4bb7429599be2 | 3a012bde79b5dae5f4199201bbf637df848d5c2d | refs/heads/develop | 2022-12-08T06:28:13.234075 | 2020-09-01T10:01:11 | 2020-09-01T10:01:11 | 164,128,854 | 1 | 0 | null | 2022-11-22T06:29:26 | 2019-01-04T16:16:30 | Python | UTF-8 | Python | false | false | 6,364 | py | import re
from defusedxml.ElementTree import parse
from django.core.exceptions import ObjectDoesNotExist
from items.errors import ItemAlreadyExists
from items.models import Armor, BonusModifier, Money
from .errors import XMLModifierCategoryNotRecognized
# NOTES:
# detail tag: Beinhaltet rarity als auch informationen... | [
"alexander@schneider.gg"
] | alexander@schneider.gg |
8c74fecf0b15bc388c3ef543c49f558f6d4d39c6 | d40cc57c974e0233fe5dfe0d19f84de48f3f122a | /core/admin/__init__.py | 4c791a3e4f13f30eca58e68f59aa801f9bd926da | [] | no_license | DanielDiaz36/ecommerce-design | 40336181bc6a716a860c36892396f92b2ad6759f | 0a3d9af28f92af9edcb89c53ef90ab92c53bb923 | refs/heads/master | 2023-06-25T18:04:16.599222 | 2021-07-03T23:38:52 | 2021-07-03T23:38:52 | 298,940,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # -*- coding: utf-8 -*-
"""
This file is part of the GSM Mine Shop project.
Copyright (c) 2019 GSM MINE GROUP LLC.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
Developed by Outboss Development Team <support@outboss.io>
... | [
"danieldiaz9211@gmail.com"
] | danieldiaz9211@gmail.com |
fc469c8bc5ffeef576be0f1bdbe4455672676d15 | 4d7a7698f74cfa730598b24524d7d17d135daf5b | /cbverifier/__init__.py | 2ab2038d582b773de99c5adaef8ef4703c665088 | [] | no_license | cuplv/verivita | 010b5d913fa25600d72980b3f9e4b45992b248b0 | 04e97a8bf582db10186b73a476fbecff1861e526 | refs/heads/master | 2021-03-27T14:19:54.315993 | 2018-09-10T16:10:20 | 2018-09-10T16:10:20 | 61,602,554 | 1 | 1 | null | 2018-11-11T19:53:29 | 2016-06-21T04:36:40 | Python | UTF-8 | Python | false | false | 21 | py | # package cbverifier
| [
"sergio.mover@gmail.com"
] | sergio.mover@gmail.com |
843e4db80ea0201c3077569bb569093601a79a4c | 73afbee610a155a5c19feb4c6aed6980c00dd7f5 | /railwayMgt/ticketCRUD/apps.py | aaf68c300f500bb3e1c0031d536fb84e099914a4 | [] | no_license | Rajat-Kaushik/RailwayManagementCRUD | 528ff21fc5ccb791d48d2459a3099e696c7a24ef | 43151bad1cdfd4c081a03008d162874ffbe62689 | refs/heads/main | 2023-04-10T05:50:55.434326 | 2021-04-26T04:25:46 | 2021-04-26T04:25:46 | 360,053,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class TicketcrudConfig(AppConfig):
name = 'ticketCRUD'
| [
"kaushik.rajat@outlook.com"
] | kaushik.rajat@outlook.com |
7423be29bd52bf57c1f3fd80469224359b422ebc | c1fa6c50d382ee37d5010560c3a3fdd85da26fa5 | /first_bot.py | 09be11289e744a73003d0a204086a86a4bcf9cfc | [] | no_license | alexanderbuc/CMPM146---P2 | eb372277b8863597b77dcdd35b171a9ca420e07f | 87d302aa7a250a4d5518e6c85eb2521560bcf59d | refs/heads/master | 2016-08-04T09:37:45.057343 | 2015-04-13T01:20:57 | 2015-04-13T01:20:57 | 33,743,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def think(state, quip):
return state.get_moves()[0]
| [
"abuc@ucsc.edu"
] | abuc@ucsc.edu |
4e1444c19b01a44bf600264d57a586ce9312006e | d3f7e6b5ba96c5c563678f1ae83361b198105ef7 | /www/config_default.py | 2bc4ccb388a5839ecd39c03d8cc2502375661cb7 | [] | no_license | Aiss86/awesome-python3-webapp | b4b9504b76e15f51c0fa2ee4e845a2c10c594762 | cb5494b4f95e20aa748c3c84070d60dbff62f95e | refs/heads/master | 2021-05-04T02:29:28.610949 | 2016-11-01T09:17:52 | 2016-11-01T09:17:52 | 71,338,736 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Default configuration.
'''
__author__ = 'Aiss86'
configs = {
'debug': True,
'db': {
'host': '127.0.0.1',
'port': 3306,
'user': 'root',
'password': '123456',
'db': 'awesome'
},
'session': {
'secret': '... | [
"mali@sgepri.sgcc.com.cn"
] | mali@sgepri.sgcc.com.cn |
818adc00a072ee6dd78744da0ba69c4801f939cf | fade4e5eb42c54a5fc89090740eafb8fd757a309 | /spark_coreset-master/k_means_coreset/old_version_garbage/bicriteria.py | c5b96e18075884a5f75f2a83e521464339cb6ba3 | [] | no_license | vkhakham/k-segment | 6e7d8a6e49388338fcd6b1ec81f255bb93cfef40 | 0527a19e172f428381681fc9e1dd6c0aeb48d597 | refs/heads/master | 2020-04-06T05:55:45.469433 | 2017-08-18T09:30:24 | 2017-08-18T09:30:24 | 51,445,147 | 0 | 4 | null | 2019-05-17T22:57:26 | 2016-02-10T14:14:09 | Python | UTF-8 | Python | false | false | 1,939 | py | #!/usr/bin/env python
__author__ = 'Anton'
import utils
import numpy as np
class Bicriteria(object):
def __init__(self, p, w, m):
self.p = p
self.w = w
self.m = m
#TODO: fix this to work with weights
def drop_half_points(self, points, weights, M):
d = utils.get_dist_to_cent... | [
"mikijoy@gmail.com"
] | mikijoy@gmail.com |
6e9e8a414373f3d05d8972dd99df84c0cd3424dc | 80519f952abe14a8226b58ca9bc8062237a45f01 | /cal_setup.py | 30bfab9d87a3309436a96469f16f67c680cb1169 | [] | no_license | vasyllyashkevych/py-google-calendar | afb486a3ab1aaa73222f0ff3f4d348130e158cae | c77b7f3085270c09b2da3068469fa97976cdfe8a | refs/heads/main | 2023-03-31T16:57:43.708860 | 2021-04-05T19:50:13 | 2021-04-05T19:50:13 | 353,659,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/calendar']
# SCOPES = ['https://www.go... | [
"vasyllyashkevych@gmail.com"
] | vasyllyashkevych@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.