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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecbb2f890b334f07bde8aa7a19a98bce73a07f92 | 89ba554332bef734a5a9ddeb27d905f66395cf40 | /pr06.py | c67b43727fd491f1aa2135dddc1be7c77e98c7f8 | [] | no_license | SF1917/Data-structures-Python | 9c5f33e50c73ff51165efd1040fdf86dc59f84ac | c010f2d00b5d5b502bac423862f37d2afc87e615 | refs/heads/main | 2023-03-20T20:46:44.270407 | 2021-03-03T06:44:24 | 2021-03-03T06:44:24 | 344,028,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | # -*- coding: utf-8 -*-
"""
@author: SF1917
"""
w = input('Type Text: ')
v = set('aeiou')
found = v.intersection(set(w))
for vowel in found:
print(vowel) | [
"noreply@github.com"
] | noreply@github.com |
a8711fce4e362750bdff7d343f520a8ae4952dca | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/Craig_Morton/lesson02/series.py | 9ba030042b6df99976ccfa916aa9610f56729636 | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 1,265 | py | # ------------------------------------------------- #
# Title: Lesson 2, pt 3/3, Fibonacci Series Exercise
# Dev: Craig Morton
# Date: 8/14/2018
# Change Log: CraigM, 8/14/2018, Fibonacci Series Exercise
# ------------------------------------------------ #
def fibonacci(n):
"""Return the nth value of the Fibo... | [
"cmorton11@gmail.com"
] | cmorton11@gmail.com |
a219c8262e721f6e24772106f5656aa8aa9d534b | 8c46e86716715197038e7976c3adc80bc4141bb0 | /main/admin.py | f6ac995ba0e40da6bd34b832941f0087cc01e3b9 | [
"MIT"
] | permissive | alan-turing-institute/autistica-filemanagement-demo | 080495b3bfd147c9b0afae8b858d08e335c9f4c2 | a1c84233131f6b1f09ad60b24edd97ae06cf8d4d | refs/heads/master | 2022-12-10T14:23:10.544180 | 2019-09-23T12:49:35 | 2019-09-23T12:49:35 | 196,981,366 | 0 | 1 | MIT | 2022-04-22T21:56:36 | 2019-07-15T10:58:05 | Python | UTF-8 | Python | false | false | 113 | py | from django.contrib import admin
from main.models import PublicExperience
admin.site.register(PublicExperience)
| [
"bgreshake@googlemail.com"
] | bgreshake@googlemail.com |
8d7d18b6bdd3036323d36f0378451ad2d5ef48e1 | 5c0a94a796f6458aadea54113f11614e708ccf41 | /Python/Día 5/entrenarmultiplicaciones.py | 9911f04794381442641674c211df8556adf70157 | [] | no_license | vasketo/EOI | 3e0f41a9a27f6008069a43b2253cb6a8a06f7a10 | 4c0698c274a74a4c7cd01fe3fdf9dc09e06c2958 | refs/heads/master | 2023-06-20T11:09:22.382675 | 2021-07-13T14:14:50 | 2021-07-13T14:14:50 | 281,315,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Realice un programa que pregunte aleatoriamente una multiplicación entre 2 números entre 1 y 9.
# El programa debe indicar si la respuesta ha sido correcta o no (en caso que la respuesta sea incorrecta el programa
# debe indicar cuál es la correcta).
# El programa pre... | [
"asiermartinez@gmail.com"
] | asiermartinez@gmail.com |
5b62cf64e2f97a8273d4545345743f72f407d928 | 94d85415d1018b36ddcbf467b56174baca4f191d | /FinalProject/views.py | 881145f41c6599241c1c07958ea2e286ae27970e | [] | no_license | qaimmaknojia/Dating-Website | 0fb000c0a0f7ce1208e6913b2fd53736001121f0 | f304254973c725bc5f06c0ae0fda822b7cfe8248 | refs/heads/master | 2020-03-27T09:40:45.979366 | 2018-08-27T23:02:39 | 2018-08-27T23:02:39 | 146,362,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | from django.shortcuts import *
import django.contrib.auth as auth
from django.contrib.auth.models import User
from django.http import *
app_name = "main"
def home(request):
return render(request, 'main/home.html')
def login_test(request):
next = request.GET.get('next', '')
if request.method == "GET":
... | [
"qaimmaknojia@hotmail.com"
] | qaimmaknojia@hotmail.com |
7aef8b494a915a43e4a8e942382d1bf445e7d293 | 4fa3cbe2fd0331c8b4e441ff7fca3cbf178f146e | /lectures/code/string_format.py | ff6b7d053dbd2b6110be39d21ffd24194203a4df | [
"MIT"
] | permissive | naskoch/python_course | ee909243b5be730694b0f8a1a9f9e8722235e625 | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | refs/heads/master | 2020-04-03T09:52:45.858591 | 2016-09-26T16:44:20 | 2016-09-26T16:44:20 | 69,268,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | fl = 0.23
wo = 'Hello'
inte = 12
print "s: {} \t f: {:0.1f} \n i: {}".format(wo, fl, inte)
# s: Hello f: 0.2
# i: 12
| [
"naskoch@stanford.edu"
] | naskoch@stanford.edu |
bb1d0819517b7e710ed742550cfcda032fa54842 | 2f9df9dd8c155e3862a9d1c94ba2b32e9d426224 | /scripts/report.py | 8b6bd88293ed59cbde601e2c390a9ce308328936 | [] | no_license | noah-spahn/maintainable-security | 3a8656385bc46b11ef21654a67c0ebc1ae6e2795 | 6d9c57e4472859ef75da0ee72ffad041edf23727 | refs/heads/master | 2023-06-17T00:49:40.505725 | 2021-07-14T12:19:34 | 2021-07-14T12:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,114 | py | import argparse
from os import listdir
from os.path import isfile, join
from math import sqrt
import csv
import collections
import pandas as pd
import numpy as np
import matplotlib
import seaborn as sns
import matplotlib.pyplot as plt
from collections import OrderedDict
import maintainability.better_code_hub as bch
i... | [
"sofiareis1994@gmail.com"
] | sofiareis1994@gmail.com |
83d484a3603a50c3b2228f355c9e23b816b93b7e | 66f62ac192d82e4bd538879b205a5ddf4e005895 | /relative_transformer/src/modules/ops.py | f289b67d247429a263cd3aa5a50946c6de0c05fe | [] | no_license | zqp111/NewMB-813 | a66772811321fd34329416abb2c058d85901f915 | b71cf3f22257b2c8059e3042a53876b5da7aed01 | refs/heads/main | 2023-03-17T18:50:10.487157 | 2021-03-01T12:28:06 | 2021-03-01T12:28:06 | 343,410,746 | 1 | 0 | null | 2021-03-01T12:35:41 | 2021-03-01T12:35:41 | null | UTF-8 | Python | false | false | 21,028 | py | # Copyright (c) Microsoft, Inc. 2020
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Author: penhe@microsoft.com
# Date: 01/15/2020
#
import math
from packaging import version
import torch
from .jit_tracing import traceable
# from config... | [
"ftdpanxie@gmail.com"
] | ftdpanxie@gmail.com |
b35acbec3e0945e3baa42a747c818ba6d4884420 | d6d2172b554e733d641d11ea6d70613c77761261 | /song_translator/track/migrations/0001_initial.py | 414e339ff24e22cc4167e711d60c1fa8e422c223 | [] | no_license | AnatoliAgeichik/song_translator | 586e286d101b0f745e17c8b82aa6ca5539d05081 | f51bcbeb32caea6394d113c6795765f0dacba4bb | refs/heads/main | 2023-06-03T12:41:59.942779 | 2021-06-22T14:33:41 | 2021-06-22T14:33:41 | 363,895,959 | 0 | 0 | null | 2021-06-22T14:33:42 | 2021-05-03T10:40:51 | Python | UTF-8 | Python | false | false | 9,507 | py | # Generated by Django 3.2 on 2021-06-22 11:02
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_leng... | [
"anatoli@wsb-167-72a.icx.local"
] | anatoli@wsb-167-72a.icx.local |
da74e1c29d17c630b13234d241a3a6085b289b99 | adabb7b3b9cb5410299406d75295afa55ed5950e | /src/products/migrations/0010_product_timestamp.py | edf6eab432e6ad1eeb46598f36182162c42d1f5f | [] | no_license | sflyntr/ecommerce | ac76066529eda8018678f54f871b528569a2f48c | 8f6d2e668ef59d2fe50f55ab032e5ac271aca2ac | refs/heads/master | 2023-02-24T17:01:25.426091 | 2021-01-11T17:24:17 | 2021-01-11T17:24:17 | 274,723,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2020-07-04 17:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('products', '0009_auto_20200704_0840'),
]
operations = ... | [
"mr.dosjung@gmail.com"
] | mr.dosjung@gmail.com |
7a1a17f7d564853eb7d0e2b10e90489f14279b8a | 0c4b33d04cf7fb73b3752b03af89eeaf76b8a0d2 | /第14章-网络编程/1.py | 699170cf14d9fa720ccd1731412ecb2f52e1ece3 | [] | no_license | kingflyfly/python_study | 3b3ab427d23174b61b8f14c223059cfa9f303219 | 8a63a7c11b408bbc11a2b636517beaa424b37725 | refs/heads/master | 2020-06-11T01:39:52.655730 | 2020-03-24T16:09:39 | 2020-03-24T16:09:39 | 193,817,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | a,b = {"yanzhe1":"yanzhe","shanshan":"shanshan1"}.items()
print(type(a))
if a == "yanzhe1":
print("ok")
else:print("fial")
print(a)
print(b) | [
"542001608@qq.com"
] | 542001608@qq.com |
4af1eb2a5ac754723aeedb7c593765031e39e6b7 | c715b8f29e18782df065f0ea8637af7e1e839c05 | /samples.py | 82b6db8cfe10493cebf3b845e4194d472ff25622 | [] | no_license | mikeswamp/helloworldP_01 | 3a5c2a914053206abdf9aaa1afdbeaa54e2cd263 | b594ec746576d0ce00a047158800f72866319918 | refs/heads/master | 2021-01-15T12:03:21.393189 | 2014-11-05T20:47:57 | 2014-11-05T20:47:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,183 | py | #!/usr/bin/env python
# Python3Programs.txt
# anne.dawson@gmail.com
# Last updated: Monday 21st February 2011, 5:56 PT, AD
# Note to AD: update this file then copy to Python3Programs.html
# Please Note: lines starting with a # are comments
# and are ignored by
# the Python interpreter...
# See:
# http://www.annedaws... | [
"mpeterson@continuousassurance.org"
] | mpeterson@continuousassurance.org |
ef9d0219b3defe3ab0832191018e283c65de037e | c8baca8894b080e612ba2babf766698c737faef2 | /config.py | 54a15867adb3fa3cd41fadc5a6754fcb3d333e0c | [] | no_license | xiaobin1234/AutoTPshop | 8796a690c4d1f3ada3ca23fba65ad3995e54ad6a | 70b2caaa49b3ad4725df2295b75bbc846d67e64d | refs/heads/master | 2021-02-18T01:45:24.479029 | 2020-03-05T12:17:16 | 2020-03-05T12:17:16 | 245,145,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
| [
"email@example.com"
] | email@example.com |
ecb1c8c9b5ecc3253e822b5e31639049244ed39d | 0ad7476f82d662249d13527219c45916cc6fb063 | /bayesian_AB/client_server_practice/server_starter.py | 3687225b896a5015fb7e697403d26b5ee12a7524 | [] | no_license | duilee/ab_testing | 87d40edb0836cd78bf0e75f41947510c3f598316 | d4bb900da4cf84cd28e5fcb8d37a2b6481eb94d8 | refs/heads/master | 2023-07-19T04:46:32.052780 | 2023-07-06T11:30:12 | 2023-07-06T11:30:12 | 331,349,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # From the course: Bayesin Machine Learning in Python: A/B Testing
# https://deeplearningcourses.com/c/bayesian-machine-learning-in-python-ab-testing
# https://www.udemy.com/bayesian-machine-learning-in-python-ab-testing
from __future__ import print_function, division
from builtins import range
# Note: you may need to ... | [
"duilee@berkeley.edu"
] | duilee@berkeley.edu |
ff9be4a2ef756dd08170368f44660c61c13cc07a | 55ca5b0642da19e7325caa6197e9ab960636aa39 | /space/events.py | edba7a5e12e9f30fd13542493013806a45ed5eb0 | [] | no_license | albertabello/Dialogue.io | 08989cc92442d59c5e9b72cd5f5b1c31e1461a58 | 75c1445ffc8ea91fcc7e87daca4d3d5e700a64e8 | refs/heads/master | 2016-09-06T06:39:47.033179 | 2012-08-10T07:00:48 | 2012-08-10T07:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | import time, datetime
from django.shortcuts import get_object_or_404
from django.utils.html import strip_tags
from django_socketio import events, NoSocket
from space.models import Call
from space.models import Session
from django.contrib.auth.models import User
from social_auth.models import UserSocialAuth
from facebo... | [
"albert.abello@ilustrum.com"
] | albert.abello@ilustrum.com |
ea3803063ed3dd780f0c88023d17df56d5909cf1 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day27/s21crm - 2 - 部门列表/s21crm/urls.py | c0b31e33ed739fdfa064389c6eec0fd0b734ef8e | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | """s21crm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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-bas... | [
"21403123@qq.com"
] | 21403123@qq.com |
a016f82a7bfd18324760a5a855fceaf758edf4b4 | 11b7c804b607f157a2691907189ca4f0e48b8860 | /selenium_google_trends.py | 90372ad4a96714b4bd539d39afde34fea3658d9e | [] | no_license | targoons/Google-Trends-Scraper | bc94a1b9206b48e7ac2a95df0b394d99c3403fb3 | a3f1d71e00121b54726fc4853bfca00cd8751abc | refs/heads/master | 2020-06-09T05:15:06.375047 | 2019-06-23T17:47:23 | 2019-06-23T17:47:23 | 193,378,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
import Keywords
keywords = Keywords.keywords
webdriver_path = '/home/targoon/Downloads/chromedriver_linux64/chromedriver'
def enable_headless_download(browser, download_path):
# Add missing support for chrome "send_... | [
"noreply@github.com"
] | noreply@github.com |
d7a1221002f13976a612e4408bfb46073ae336ea | 6f170878756cc2ee76ae70ab220201aa5c742f34 | /tf_api/core/box_predictor.py | af0bf1ff054a19b03e0bdf918ec3d44e512dd8b5 | [
"CC-BY-4.0"
] | permissive | abhineet123/animal_detection | 293e4491d574e88aab73a2bd7bea0a05db7f3662 | be0dd60d2b56b267f329b7be71d7f037499f98bc | refs/heads/master | 2023-07-22T18:13:00.506591 | 2021-10-28T01:04:35 | 2021-10-28T01:04:35 | 217,391,182 | 31 | 8 | null | 2023-05-22T22:26:54 | 2019-10-24T20:37:32 | Python | UTF-8 | Python | false | false | 25,358 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"asingh1@ualberta.ca"
] | asingh1@ualberta.ca |
447309d3a7c5cd11e434e9eebbca587f1745d7b5 | 04f5b7913f5802813ed5b9b894d9723a96893d29 | /xonsh2/prompt/__init__.py | a6524670600a5456eef8be8b014b0213eefb254b | [
"BSD-2-Clause"
] | permissive | anki-code/xonsh2 | b0e52f01119622b383b37a27658c3615507ef6e7 | bd96fcdce9319ab6b90c7d9ac47d2249b61144d0 | refs/heads/master | 2023-01-04T09:19:43.857637 | 2020-11-01T17:10:44 | 2020-11-01T17:10:44 | 309,102,477 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | # amalgamate exclude
import os as _os
if _os.getenv("XONSH_DEBUG", ""):
pass
else:
import sys as _sys
try:
from xonsh2.prompt import __amalgam__
cwd = __amalgam__
_sys.modules["xonsh2.prompt.cwd"] = __amalgam__
env = __amalgam__
_sys.modules["xonsh2.prompt.env"] = ... | [
"a"
] | a |
1ba14f625f8501ee99bf3757739532e70728fe57 | f772af54fda0f6a3341c11b5828ceb705d55620d | /api_calling.py | ac65d0534b18d417faacbff1503cb5f8f4084266 | [] | no_license | Harshpatel44/news_website | 8f75a7c429a7633f792878eab441fb44acc184c4 | cc75edfcc057642fe35e64cddcd9d5b835261662 | refs/heads/master | 2020-03-09T19:48:35.421878 | 2018-04-24T16:11:33 | 2018-04-24T16:11:33 | 128,966,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | __author__ = 'harsh'
import json
import requests
import urllib
import mechanize
# from bs4 import BeautifulSoup
# br=mechanize.Browser()
# br.set_handle_robots(False)
# br.open('http://newsapi.org/v2/top-headlines?sources=the-hindu&apiKey=0fc0e9b54d5d4389b807d66a86fcee50')
#
# print(BeautifulSoup(br.response.read(),'h... | [
"harshgp44@gmail.com"
] | harshgp44@gmail.com |
83bd32474d5fdd7943df61a2f550898f0e745c32 | 5b9035dbfe0750e9933728f9631ad7a183dd3429 | /17/00/weakref.ref.callback.py | 1e2d84ae969b05e9575767bcd18a17d0192a8745 | [
"CC0-1.0"
] | permissive | pylangstudy/201709 | 271efbd4f337d912d0ca958a621eb2a040091528 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | refs/heads/master | 2021-01-21T12:16:21.950493 | 2017-09-30T00:02:34 | 2017-09-30T00:02:34 | 102,058,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import weakref
class ExpensiveObject(object):
def __del__(self): print('Deleting ... %s' % self)
def callback(reference): print('callback(', reference, ')')
obj = ExpensiveObject()
r = weakref.ref(obj, callback)
print('obj:', obj) # <__main__.ExpensiveObject object at 0xb710adac>
print('ref:', r) # <weakref ... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
0ec0dbd3b879bc5d6fc043f5e1b1ca9f1c8179fd | 04b8cf32b4d314762fc2c4c2441a6ecd1f53f0fe | /calculator/views.py | 63ba5ce71c1de7103ccd1da4fb6fa5bb8f80960e | [] | no_license | chikh22822490/calcul | f2915c1d8abea14149ab6f337a7f936fd688a603 | 64ea5f513e0b02deeb3e69dcb675a098d2fb3329 | refs/heads/main | 2023-08-21T03:40:48.578702 | 2021-10-25T23:31:09 | 2021-10-25T23:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | from django.http import request
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from spyne.model.primitive.number import NonNegativeInteger, PositiveInteger
from spyne.service import ServiceBase
from spyne.decorator import rpc
from spyne.application import Application
from spyn... | [
"chikhaoui.faycel@gmail.com"
] | chikhaoui.faycel@gmail.com |
56452506977bbd6ab8fc7083b7ab23936011a64d | 89c9806c714ad85c796f869d1f9ecf46a0fca259 | /leapyr.py | e802a501bf7b529e7f26f05d87e639d80a3f362d | [] | no_license | Rubycyr/Guvi | 86c10cd9d98a894baf5bfcb456a46519d7aa08af | 1b6f9756d7be2a5cedc85d7a33efb77f8cbd4aa4 | refs/heads/master | 2020-04-14T20:09:44.500702 | 2019-06-29T07:41:52 | 2019-06-29T07:41:52 | 164,083,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | Num = int(input("Please Enter the Num: "))
if (( Num%400 == 0)or (( Num%4 == 0 ) and ( Num%100 != 0))):
print("%d is a Leap Year" %Num)
else:
print("%d is Not the Leap Year" %Num)
| [
"noreply@github.com"
] | noreply@github.com |
3c7d41083ba179a8fc5ae19d85fc0717380d1862 | 40862468fc9354ea22252cae176439c17edaefff | /src/test/message_printer.py | fd13b0a91e06aa01fcc62e45796478bcdc56e80a | [] | no_license | ericf123/ledcube | 147837cdc80fb0dbd551e6ad5d20d82ace13437c | 2035a13691b6c2ffb39a22e69a96470fc40ade29 | refs/heads/master | 2020-03-28T14:47:21.325224 | 2018-09-12T18:28:07 | 2018-09-12T18:28:07 | 148,522,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import cubestate
cs = cubestate.CubeState('/dev/cu.SLAB_USBtoUART', exp_time=-1)
input("press enter to start")
while True:
cs.printf(input("enter message: "), .25, z_planes=[3])
| [
"efrankel624@gmail.com"
] | efrankel624@gmail.com |
938319c0ec9bf23932b135e6b736177504f56448 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/LearningToSeeInTheDark/src/unet_parts.py | 98222051e28a37247b798b96c9df9180649f7d6c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,576 | py | # Copyright 2021 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 agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
4d5abe700c5d48838af29b5be52a1e7aa59eee03 | ba5c4c07d11e6f529ba7184ef3fe1ab0d61a19e6 | /examples/btn_start.py | 6b1c2aec64fb2f2ea08c9cf654e1fd702b12c056 | [] | no_license | slightlynybbled/tkmats | 920033adef46f41b67e99f3e7ba1b13a1c7ff4c5 | 73e03e519287b09436f547a532fbd33c1ce05cca | refs/heads/master | 2020-04-30T17:58:19.036996 | 2020-02-19T03:44:33 | 2020-02-19T03:44:33 | 176,996,416 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | import logging
from random import random, choice
from time import sleep
import tkinter as tk
from mats import Test
from mats import TestSequence
from tkmats import TkMatsFrame
# The CommunicationTest class shows the minimum test structure that might
# be reasonably be implemented. Only the `execute()` method is imp... | [
"slightlynybbled@gmail.com"
] | slightlynybbled@gmail.com |
ab061fb9bc9e9a17133655c37bf8f7f9b529bc18 | 076dd40fcb9283a8e3d66dd3fa3745826b887378 | /kashgari/embeddings/__init__.py | 066291c4f5f8347689c72990be315e70c02a4db2 | [
"MIT"
] | permissive | gongqingyi-github/Kashgari | 54bb53bb618b9791433a61a7fd5e73f4951873f1 | efc9510ed53f5bb78183e66d96d57a55cc290a91 | refs/heads/master | 2020-04-18T16:51:22.609685 | 2019-01-26T02:26:54 | 2019-01-26T02:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: __init__.py.py
@time: 2019-01-19 09:57
"""
from .embeddings import BERTEmbedding
from .embeddings import BaseEmbedding
from .embeddings import CustomEmbedding
from .embeddings... | [
"eliyar917@gmail.com"
] | eliyar917@gmail.com |
4794afad4a57ae2d0be02bf91f1a4672a8178fb1 | b350bbf45590f5e6d9f60dc81911e45ab0ae93bb | /PP_Exercise_13.py | b71432423c57da7a5ec92dc08ee0d032d4e45dbd | [] | no_license | camitt/PracticePython_org | 516b64f7b887172145bf06a124782c9b9eea0045 | 9ccd3e7aaec7cd742cd048c2de0836c458b4ce7f | refs/heads/master | 2020-04-16T08:50:32.341345 | 2019-01-15T03:25:41 | 2019-01-15T03:25:41 | 165,440,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import re
# Write a program that asks the user how many Fibonnaci numbers to generate and then generates them. Take this opportunity to think about how you can use functions. Make sure to ask the user to enter the number of numbers in the sequence to generate.(Hint: The Fibonnaci seqence is a sequence of numbers where... | [
"cameron.pattberg@gmail.com"
] | cameron.pattberg@gmail.com |
aa1052794e6666e22034a711a7084b28db7b2f9f | c4a81cb914dba08f2b694325439c3dbb71d89bc7 | /bgui/optwdg.py | 03c34229919d3344da62782ae2afede3f0b82e2e | [] | no_license | kalininei/biostata | fc3c67bb065b8e0baa692148ad1a48599777e197 | a0fe6fd22e35b5a71bdeff036b51998c1260c688 | refs/heads/master | 2020-03-26T13:21:20.217529 | 2018-10-14T09:18:30 | 2018-10-14T09:18:30 | 144,934,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,806 | py | #!/usr/bin/env python3
"""
2) Option representation classes (are used for OptionsList building):
SimpleOptionEntry - QLabel (for display) + QLineEdit (for edit).
Can be used for arbitrary str, int, float data.
BoundedIntOptionEntry - QLabel + QSpinEdit.
Used for integers with defined bounds
... | [
"kalininei@yandex.ru"
] | kalininei@yandex.ru |
80f0b5d57490ad2935ea2892c5476d206e8fba05 | 3fe4c68c676905329688607831f05bbdeae52239 | /기말프로젝트/1주차/logo_state.py | 1bfc43759dbeb4570543dc93cbb64856b923cee7 | [] | no_license | dmsdn16/2017182044-2D-02 | abe81df788badc853bf5a40b62f3d8f61342068d | 77f5b98e2a380765710e9bdc3d2dbae1ec599892 | refs/heads/master | 2023-02-03T08:48:00.028468 | 2020-12-10T16:49:13 | 2020-12-10T16:49:13 | 294,934,845 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import gfw
from pico2d import *
import title_state
def enter():
global image, elapsed
image = load_image('../res/무녀.png')
elapsed = 0
def update():
global elapsed
elapsed += gfw.delta_time
print(elapsed)
if elapsed > 1.0:
gfw.change(title_state)
def draw():
image.draw(400, 30... | [
"32299218+dmsdn16@users.noreply.github.com"
] | 32299218+dmsdn16@users.noreply.github.com |
d0ac9e0c9979e717f2ab36b718126e42a3638fc6 | 19a00871a7ae1b968382483b64762373e67fa69d | /simulator-ui/docs/dummy/ca/nengo/model/neuron/impl/__init__.py | 449fb5e6630b67efd889c85e14a4e3c9be10fc53 | [] | no_license | mcchong/nengo_1.4 | cb702509fa0512bdaa367b19bd032f881083c8bc | 5a4f2aee941376393c76de0c28c1668904236a62 | refs/heads/master | 2021-01-16T20:27:17.571592 | 2013-04-26T18:54:57 | 2013-05-08T17:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | class LIFNeuronFactory: pass
| [
"terry.stewart@gmail.com"
] | terry.stewart@gmail.com |
d9386ac8295559129ff05774aa1a84faaab6b950 | 0a6ee0f952137eba2eea510fb8686659477b3aea | /demo_deform.py | 0ff6310245d9f77320410a0efae4455fa996def3 | [] | no_license | Clement5140/softras-jittor | d0353f2e66621da5324127ae3e97b916eb708a05 | 8da0afb12e84bdc72d7a56a69952e9ba237f4d12 | refs/heads/main | 2022-12-27T16:06:29.867979 | 2020-10-16T03:10:49 | 2020-10-16T03:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | """
Demo deform.
Deform template mesh based on input silhouettes and camera pose
"""
import jittor as jt
jt.flags.use_cuda = 1
from jittor import nn
import matplotlib.pyplot as plt
import os
import tqdm
import numpy as np
import imageio
import argparse
import soft_renderer as sr
current_dir = os.path.dirname(os.path.... | [
"zhouwy1998@foxmail.com"
] | zhouwy1998@foxmail.com |
18687e9a13ac1e84e4dab130724a50e647eea49d | 1da70685fb173b11222f8080ee9a6b8f2d121837 | /lead_cap/config/docs.py | dbc424468cf7370fa11ae70c549e5697036bf7b2 | [
"MIT"
] | permissive | DigiThinkIT/lead-capture-page | 3d71236e68a1ca9283bc0cacedceacc74b0664be | ed11b3f3bf9b7eb1073612522943f0e3becd12aa | refs/heads/master | 2020-03-24T04:43:14.359011 | 2018-07-30T11:15:30 | 2018-07-30T11:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/lead_cap"
# docs_base_url = "https://[org_name].github.io/lead_cap"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "Lead Capture"
| [
"ashwin@digithinkit.com"
] | ashwin@digithinkit.com |
4b25a66c3105bc9c257188f19dd63ec0e14d457a | af7050b659e48a979809a705066baf7cd1a84255 | /350_intersection-of-two-arrays-ii.py | 72c4b527f143261a9739c1272e905024c6f6b4b7 | [] | no_license | zyk930/leetcode | b9547cbbeaf0202c2bb3e1a22d30f1ecddd4244e | 27c9da844550080c41fae60906274347f9e62919 | refs/heads/master | 2020-04-10T15:13:45.886717 | 2019-06-04T01:37:10 | 2019-06-04T01:37:10 | 161,101,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/21 10:10
# @Author : zyk
'''
给定两个数组,编写一个函数来计算它们的交集。
示例 1:
输入: nums1 = [1,2,2,1], nums2 = [2,2]
输出: [2,2]
示例 2:
输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
输出: [4,9]
说明:
输出结果中每个元素出现的次数,应与元素在两个数组中出现的次数一致。
我们可以不考虑输出结果的顺序。
进阶:
如果给定的数组已经排好序呢?你将如何优化你的算法?
... | [
"zhouyk@buaa.edu.cn"
] | zhouyk@buaa.edu.cn |
2b7e4631b4f29246d007524d058aaac3d67a8629 | 4c91879e3bb3ef24cd4d1d2c79eedecc7030c2e8 | /python/191_number_of_1_bits.py | 131d0670c4972e14a4560d586b35fe92f7a62424 | [
"MIT"
] | permissive | PepSalehi/leetcode-soln | a47d827c2973ad06d22d0b8b83f2fadfb5b283d1 | cbf2db0d81d5ef98f48c8d1df486559f89142bfd | refs/heads/master | 2020-09-15T14:14:11.422791 | 2018-04-19T15:27:38 | 2018-04-19T15:27:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | """
Write a function that takes an unsigned integer and returns the number of ’1'
bits it has (also known as the Hamming weight).
For example, the 32-bit integer ’11' has binary representation
00000000000000000000000000001011, so the function should return 3.
Credits:
Special thanks to @ts for adding this problem... | [
"ufjfeng@users.noreply.github.com"
] | ufjfeng@users.noreply.github.com |
8c7f01c2673637c670bc3011e7e8ee9b65639a0e | b63f9e4e2c478e672cea9391b77cd57591fd813a | /code/data_processing/data_processing_engine.py | 82fe62e4ebe32cdea5ea3b8385ed0dac9a4b6101 | [] | no_license | jpazvd/smart-survey-boxes | 0382f49496ee33bc48602abb0322d3c7d8e658a3 | f624e6191434720560afbcd9b03016b954f31bd8 | refs/heads/master | 2020-08-28T16:52:47.998380 | 2018-04-09T22:25:48 | 2018-04-09T22:25:48 | 217,759,932 | 1 | 0 | null | 2019-10-26T19:36:20 | 2019-10-26T19:36:16 | null | UTF-8 | Python | false | false | 32,335 | py | """
All the data processing is done in this module including:
1. Daily backup of the sms
2. Pre-processing the raw sms and saving them to files
2. Imputing missing data values
"""
import os
import sys
from datetime import datetime
import pandas as pd
from sklearn.ensemble import RandomForestClassifier, GradientBoos... | [
"dmatekenya@gmail.com"
] | dmatekenya@gmail.com |
1a90a4832f0bd096ed769e1467cc0c56e2b40c97 | e11b2416685cdda0abbfbd6f7856ef5601bc97ca | /MSV_GammaHadron.py | b601f5470793f1f04295f0bf160d865a3c9fb8a4 | [] | no_license | arianalopez/MachineLearning | cc0a2a28dd51ad0fbda3419489c7919d43f7e234 | 18f8449f25e146a5e6f0d1623456f0d39b0a370b | refs/heads/master | 2020-06-13T04:46:41.931661 | 2016-12-03T02:40:51 | 2016-12-03T02:40:51 | 75,446,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py |
from matplotlib import pyplot
import matplotlib.pyplot as plt
import pybrain
from pybrain.tools.shortcuts import buildNetwork
from pybrain.datasets import SupervisedDataSet
from pybrain.supervised.trainers import BackpropTrainer
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
from sklearn.svm impo... | [
"ariana.lopez.c@gmail.com"
] | ariana.lopez.c@gmail.com |
98b29e78f354f896f27d9785a107e5bae46cb53a | 8f70ad12af7eba07efa52eb29b8f99ed3900dbb9 | /AGTGA data/AGTGA/posifon/posifon 2/TestSuite/TestSuite/TestCase01.py | 038064c093137ade8a3097f9ca295bbb0ed13f50 | [] | no_license | Georgesarkis/AGTGARowData | 768952dc03dc342bcbe0902bf2fb1720853d0e14 | e1faa7dc820b051a73b0844eac545e597a97da16 | refs/heads/master | 2022-10-01T17:06:04.758751 | 2020-06-05T07:25:41 | 2020-06-05T07:25:41 | 267,772,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from TestSuite.TestSuiteHelper import ElementFinder
port = 'http://localhost:4723/wd/hub'
driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':... | [
"32592901+Georgesarkis@users.noreply.github.com"
] | 32592901+Georgesarkis@users.noreply.github.com |
e001e35f05d6231360849b4f568f0a0ad0d7574d | 9f50469da337a397703fee1a2f6b5a9792bdba7b | /setup.py | 5f262ffc6c851128834ba1c00e965a565af9615f | [
"MIT"
] | permissive | ysibata/storage | b88a29a2ba5fd0f1f401eb41e54618009d3e307f | 858e348c7d4f12185919a97a45e7c4280b1ed2ab | refs/heads/master | 2022-12-10T06:14:03.887980 | 2019-07-05T08:15:30 | 2019-07-05T08:15:30 | 292,272,575 | 0 | 0 | MIT | 2020-09-02T12:10:30 | 2020-09-02T12:10:29 | null | UTF-8 | Python | false | false | 1,445 | py | #========================================================#
# #
# setup.py - PyPI 用 setup スクリプト #
# #
# (C) 2019-2019 VIPPOOL Inc. #
# ... | [
"hoshizuki@axell.co.jp"
] | hoshizuki@axell.co.jp |
c7e4925e999e4e991a976d35fcb9bad5e6705839 | 15240e0e187788f1114cac98c534004ab4793cbf | /influxdb_client/domain/__init__.py | 5515fe69bc3d437db242e2da6726b52a48e74483 | [
"MIT"
] | permissive | semyont/influxdb-client-python | dddb6a1309fd424c9b1e0bec7c67a442cfcfe0b5 | 7b685fda2030b22697b6096cc3161fbbc01e7bee | refs/heads/master | 2020-09-19T18:39:52.132739 | 2019-11-27T07:11:23 | 2019-11-27T07:11:23 | 224,266,106 | 2 | 0 | MIT | 2019-11-26T19:06:17 | 2019-11-26T19:06:09 | null | UTF-8 | Python | false | false | 19,496 | py | # coding: utf-8
# flake8: noqa
"""
Influx API Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
# impor... | [
"noreply@github.com"
] | noreply@github.com |
8cbe9d1fc23bb7d7d6c90d3417138c2c17fc8278 | 8265091caac016b792499d12e582a13f1deedda9 | /scripts/draw_palette.py | 46ce1a1fa17e88faac25ceffdce6afebb4b6901c | [] | no_license | fourks/NES-Memory-Visualization | 587d52af1049d14a5482213ec12d4db26d365b0f | 1bfbb91ee9bd9ac3668fafe8e07064d0b45c39ff | refs/heads/master | 2021-06-20T02:52:45.221613 | 2017-07-17T06:26:34 | 2017-07-17T06:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
Simple script for rendering a palette
"""
from PIL import Image
from image_writer import ImageWriter
import color
if __name__ == '__main__':
img = Image.new('RGB', (16, 4), 'black')
writer = ImageWriter(img)
for x in color.nes_fceux:
writer.write(x)
scale = 32
img = img.resize((img.si... | [
"mattbierner@gmail.com"
] | mattbierner@gmail.com |
df0ebcaff46330cf4fbcf874baf99dfc36b48708 | 8a334024a7c03379630c5ed0c422aa5eaa256be0 | /sealedclasses/service-stub/service-stub.py | 01926ea244b8445f02b359cab28427d1516433f0 | [] | no_license | nkhatwani-unicommerce/blog-related | e53cfe1b816adf6d9c6ad84911966d7e6d89cbd2 | 8a63126e08459ce4211924eeeb2d131e0a32b820 | refs/heads/master | 2022-12-22T09:42:12.119175 | 2020-10-01T06:35:09 | 2020-10-01T06:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #!/usr/bin/env python3
import json
from flask import Flask, Response
app = Flask(__name__)
@app.route('/userProfiles/<path:user_id>')
def get_design_data(user_id):
response = {
"id": user_id,
"name": "Peter",
"avatarUrl": "http://localhost/peter.jpg"
}
return Response(json.dumps(r... | [
"info@philipphauer.de"
] | info@philipphauer.de |
98546ad5cc6a3a7cedac2adaf77d2de5cf4a7783 | 119253972f3f990441fc613ef3640d2d48466042 | /nmre/pages/urls.py | 112bd2874b543942df427fd4adb4488940222a44 | [] | no_license | nicksoftware/real_estate_project | 636f31a06fead3477e9b4c390838752f812368ad | 033b4c53985bc9ea61ac4555e2e57c69fb185135 | refs/heads/master | 2023-04-01T13:41:03.901367 | 2020-11-17T01:57:54 | 2020-11-17T01:57:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
] | [
"nicolusmaluleke@gmail.com"
] | nicolusmaluleke@gmail.com |
dd628295592f54a4e11cdd196b5a1519b2528316 | ebc4d16fd8bfcaa79d788d34b0e43a65327b3b3d | /text_ocr.py | 570969677f9a5bdcc5e7ab98e6ad4638b26d5553 | [] | no_license | yamathyao/Image2Text | 2ded2b4c6d1b4dd9e5652ea7c4bf9fb5502db494 | bf643a141c391d4cada2ca02dcc490ff85de1a9e | refs/heads/master | 2020-09-01T08:23:23.002376 | 2019-11-01T06:01:30 | 2019-11-01T06:01:30 | 218,919,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | import os
from aip import AipOcr
# 认证信息
APP_ID = "1700000"
API_KEY = "F000000000000000000000"
SECRET_KEY = "k0000000000000000000000000000000000000"
def get_ocr_str(file_path, general_or_accurate, origin_format=True):
"""
图片转文字
:param: file_path 图片路径
:return:
"""
with open(file_path, 'rb') as... | [
"yaoyamath@gmail.com"
] | yaoyamath@gmail.com |
dde4701018fcca5553d89c262e15fe61ca2bd5f2 | f1fb40eb03b013f1eaafb45b5d2be91572be9ba0 | /venv/bin/wheel | d27fa146512265237cf7109962836c8056e551ba | [] | no_license | weitikuo/iPeenCrawler | 1bfe9d0145f3df6fda9f773f689bee8aa6937407 | ebb548728e8cdf1f1e64b0c0a0c9fb8a39dca1ef | refs/heads/master | 2021-01-24T02:29:22.539175 | 2018-05-07T03:56:54 | 2018-05-07T03:56:54 | 122,849,030 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/weiti/PycharmProjects/iPeenCrawler/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"weiti.kuo@gmail.com"
] | weiti.kuo@gmail.com | |
114a6e95cf1016514fb187b0348b3ff64fe32b44 | fbca417e6a5d931523af2012d5b849e70b4c014c | /utils/core.py | cae1ab2524e822eb435af7e7e2229e3405b1a4d7 | [] | no_license | caoxiaojin/celery_demo | 822ff96aa16199d031875c391d876b3724a7ea4a | e6f58e6094f0d314d531b32b029ed890db10439f | refs/heads/master | 2023-07-30T05:04:54.739945 | 2021-08-27T17:24:54 | 2021-08-27T17:24:54 | 400,585,346 | 0 | 1 | null | 2021-09-17T13:39:04 | 2021-08-27T17:20:00 | Python | UTF-8 | Python | false | false | 168 | py | class MyResponse():
def __init__(self):
self.code = 200
self.msg = "执行成功"
@property
def get_dic(self):
return self.__dict__ | [
"cj1638646201@163.com"
] | cj1638646201@163.com |
24ba6f71b4a101cc1541c80c0951f3072bf523ee | 86f0e2122defacfe934a945ca42c5ca429373830 | /simplesocial/simplesocial/wsgi.py | 545b631916ae0066aaad34de10d5969d5f92fdce | [] | no_license | KajalSahu00/social-website | df0fb90e4b4a079651a7cd05dab5b327531c3b8a | bee6b6e1ab4bab433962827b2820f53e2bdfc43e | refs/heads/master | 2022-08-31T19:56:13.125213 | 2020-05-16T13:19:19 | 2020-05-16T13:19:19 | 264,439,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for simplesocial project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"Kajalsahu0028@gmail.com"
] | Kajalsahu0028@gmail.com |
0c8c29ae00b620614383c24a6b9db48d3c488117 | 27a8692c6bed25bd92868a519d95e9570ea204cd | /bot/handlers/stickers/remove.py | d477b5721bf292f79c74e4fc29fa806ac467e504 | [
"MIT"
] | permissive | metti61680/sticker-thief | f3d7fc49a3337eaead84d4d682fac98cd367fc5a | 3006b8367f8e09aab1e60428338021b95e5d0b13 | refs/heads/master | 2020-12-14T02:23:41.684888 | 2019-12-04T11:27:28 | 2019-12-04T11:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import logging
# noinspection PyPackageRequirements
from telegram.ext import (
CommandHandler,
MessageHandler,
ConversationHandler,
CallbackContext,
Filters
)
# noinspection PyPackageRequirements
from telegram import ChatAction, Update
from bot import stickersbot
from bot.strings import Strings
fr... | [
"numeralzeroone@gmail.com"
] | numeralzeroone@gmail.com |
672321ebf82e31c14af3274cd5b61a7650715780 | baf3736092f9aecf79fc717b6d5efc19c5ac3ba9 | /ArticleSpider_splash/pipelines.py | 74a77623ba5d113d94d8f288a8a4a0d1124ad2ac | [] | no_license | tang1323/ArticleSpider_splash | 6215224cd5c36a243b950590faf7da2671c4014a | 992e50f93ba705ffbf3d8282f0c47cd3c9f638f2 | refs/heads/master | 2023-04-08T13:07:26.526856 | 2021-04-15T01:55:13 | 2021-04-15T01:55:13 | 358,095,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,016 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs # 可以避免编码的繁锁的工作
import json
from scrapy.pipelines.images import ImagesPipeline
from scrapy.exporters import Jso... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
5eb65039447f83eb0eb696dcc783c883455eb18a | ddbb261d7a72a39f7d86544a46dcb8b0ad8a23d0 | /rest_api_project/settings.py | 87c420990a7c95c7bdc296f6777de3388b7c7bd7 | [] | no_license | Ysajid/rest_api_project | 9245f5562b1a52ba47211e3e34a48e83a09707ea | d6e2544bc69fada974f7ddefbea4443fb3bdd35e | refs/heads/master | 2021-01-20T12:25:17.142186 | 2017-05-05T16:06:15 | 2017-05-05T16:06:15 | 90,365,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | """
Django settings for rest_api_project project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"ysajidasfi@gmail.com"
] | ysajidasfi@gmail.com |
0eb06c3fa02ce2111d99870dc950e0bead97fed7 | f65a66ad5c38db3a57171d8d3872eb200a2f6cb9 | /concoord/test/test_failure3.py | 7804b0e3457a40139a34c001939bdc277e376c57 | [
"BSD-3-Clause"
] | permissive | liranz/concoord | 1900eb98e438831580f504471235b60a4362075d | bdb3798bf200d1cbd04bc50260cddaec6ba2a763 | refs/heads/master | 2020-04-17T13:46:13.032802 | 2014-03-02T14:55:53 | 2014-03-02T14:55:53 | 17,177,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,012 | py | # Create two replicas and two acceptors
# kill the first two, and then recreate them connecting to the new ones.
# Value returned from second increment is wrong. (1 is the supported number for 2*1+1=3 according to section 4.6 of the paper.
from __future__ import print_function
import subprocess
import time
from concoor... | [
"liranz@gmail.com"
] | liranz@gmail.com |
5a8a349c3931e64d08678e678bc7346e50f50316 | 9ef913e2c5eccaaf0879a1d916a1162d61878611 | /docs/conf.py | 705d3f83b5abde20dcb51db99e2a39a25b601418 | [
"MIT"
] | permissive | aschampion/diluvian | 5c2443b2afd3837c7cdab6df8533ccd76ff05d87 | 3df1e0666f6e65c7719f703e629239b7f0493f86 | refs/heads/master | 2023-01-05T11:58:30.518776 | 2019-03-14T14:56:19 | 2019-03-14T14:56:19 | 92,058,036 | 21 | 15 | MIT | 2022-12-26T20:28:32 | 2017-05-22T13:41:12 | Python | UTF-8 | Python | false | false | 9,209 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# diluvian documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"andrew.champion@gmail.com"
] | andrew.champion@gmail.com |
804a8b6fc1d5e164cc2b6745fc397f61731fceaa | 70053e4df9dcc36d3650931a81c569f544dcd808 | /ambiguity_distrib.py | e7b783dd6c5e647cb82de445ff09453d88344dac | [
"MIT"
] | permissive | ITBE-Lab/MA-EVAL | daec6ffc9098f0aaaae811eb0862e5aa4fc2c7d7 | b9d04bc4a0bbd90eff6bbdf97e49da1a80b98bb5 | refs/heads/master | 2020-03-29T18:08:13.216691 | 2018-09-25T03:18:56 | 2018-09-25T03:18:56 | 150,196,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,656 | py | from MA import *
import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
import random
import gc
import os
import math
from bokeh.plotting import figure, output_file, show, ColumnDataSource
from bokeh.models import HoverTool
from bokeh.layouts import row, column, layout
from bokeh.palettes... | [
"markus.rainer.schmidt@gmail.com"
] | markus.rainer.schmidt@gmail.com |
b4d34b02d7e324a56920c766649648c749016c9f | 87f2ca1987a8dd0c0731970ebdb5b25e8f6fa6ff | /movies/admin.py | 25022baae6bf1b1122c4d0ad321824c0493432ad | [
"MIT"
] | permissive | gomezhyuuga/moviewatch | 02209e38d58d05b87be74b404c987ba366eae000 | 0e8c61257ad7cf2f20e95e8d6ad32711d8019ea6 | refs/heads/master | 2020-04-01T23:24:59.872058 | 2017-11-16T05:18:49 | 2017-11-16T05:18:49 | 34,629,862 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from django.contrib import admin
from django.contrib.auth.models import Group
from .models import *
# Custom admin page
class FilmAdmin(admin.ModelAdmin):
list_display = ('name', 'director', 'genre', 'rating')
search_fields = ['name']
list_filter = ('director',)
admin.site.unregister(Group)
admin.site.register... | [
"gomezhyuuga@gmail.com"
] | gomezhyuuga@gmail.com |
c484f699d5c63d23dd63a6a8c865ac17eaad02a9 | df156fdcc7c2aaae26bad931b18b458ef9700276 | /update_stock.py | caa6d338a4ea735a3250640de81b82b1651e185c | [
"MIT"
] | permissive | fvenya7/parcial_II | a9394d0754330557070d09651f23f8c3dcb0cede | 31223c200356bfb9dc7074f55c00f286a97e13da | refs/heads/main | 2023-02-27T21:45:43.824558 | 2021-02-07T09:06:10 | 2021-02-07T09:06:10 | 336,744,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | import psycopg2
def update_stock(codigo_producto,stock):
sql = """ UPDATE inventario SET stock=%s WHERE codigo_producto=%s;"""
conn = None
try:
conn = psycopg2.connect(
host="localhost",
port="5432",
user="postgres",
database="prueba1",
... | [
"noreply@github.com"
] | noreply@github.com |
3973e931aeeeeac100c32d2cb812b20006506c06 | afea76866d93002b6b6080e02f217e4b7ef71917 | /app/main.py | 3c0e4139b3d3fe7557b3c13f279884db3fb3bf7e | [] | no_license | jorgerpo/fastapi-simple-app-example | e6db8ff84ebf5c19d2f12b57f46645559a96b4fe | b70325a44e5b68c46a41827cdfe23437f32e3caa | refs/heads/master | 2022-07-26T10:11:27.298299 | 2020-05-20T19:48:48 | 2020-05-20T19:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | from typing import Any, List, Generator
from fastapi import Depends, FastAPI, HTTPException
from pydantic import UUID4
from sqlalchemy.orm import Session
from starlette.status import HTTP_201_CREATED, HTTP_404_NOT_FOUND
from . import actions, models, schemas
from .db import SessionLocal, engine
# Create all tables i... | [
"vanzyl.alex@gmail.com"
] | vanzyl.alex@gmail.com |
16ae8a9d72f910dba003cc8336820436d7ede094 | 06e56dfae3e1c6b428a23c957881ed5864d634a7 | /tests/load_examples_test.py | 65daf96a21f1d7697a6bfb6d8763f32931b77ef3 | [
"Apache-2.0"
] | permissive | Beacon-Platform/incubator-superset-beacon | c2cba71c31dcccd3c57dc9bbc27186c7d11db8ea | d6d97d71e9e63521032439d7c40bcaeaf9741d9b | refs/heads/master | 2023-07-21T08:35:00.974567 | 2021-03-04T18:32:32 | 2021-03-04T18:32:32 | 249,618,067 | 2 | 0 | Apache-2.0 | 2023-08-14T21:56:13 | 2020-03-24T05:08:13 | JavaScript | UTF-8 | Python | false | false | 534 | py | from superset import data
from superset.cli import load_test_users_run
from .base_tests import SupersetTestCase
class SupersetDataFrameTestCase(SupersetTestCase):
def test_load_css_templates(self):
data.load_css_templates()
def test_load_energy(self):
data.load_energy()
def test_load_wo... | [
"pawel.potocki@beacon.io"
] | pawel.potocki@beacon.io |
45a7fa4dc6f994f67ba62acff46d4c9eba1471dc | 7e0907bfe3fc66b2717ff43bbfc496d36e6ca733 | /examples/custom_schema.py | b5b2d6f55d6990e3078487081adcadf01aed7b40 | [
"MIT"
] | permissive | devinaconley/py-object-factory | 3941fff594d183cbef940288e02c97a0246ba62f | 6c97821feea8c47f7ad909cedbe57938c92761aa | refs/heads/develop | 2023-02-05T19:02:37.930532 | 2021-09-28T21:40:14 | 2021-09-28T21:40:14 | 144,293,421 | 12 | 0 | MIT | 2023-08-17T22:15:42 | 2018-08-10T14:03:53 | Python | UTF-8 | Python | false | false | 2,542 | py | """
custom marshmallow schema example
use the objectfactory library with a custom marshmallow schema
to validate and load contact information
"""
import objectfactory
import marshmallow
def main():
contacts = [
{
'_type': 'Contact',
'first_name': 'john',
'last_name': '... | [
"devinaconley@gmail.com"
] | devinaconley@gmail.com |
d0db4dd53fc928a47070993d812e526112a25bb3 | 4a0f8c5c0e8324fa614da776f2a704b5c369ccbb | /Contact_maps/dealFile.py | 5816c559c07cbd917443fb8e7f1b4a6c81f4de53 | [] | no_license | magic2du/contact_matrix | 9f8ae868d71e7e5c8088bf22a9407ea3eb073be6 | 957e2ead76fabc0299e36c1435162edd574f4fd5 | refs/heads/master | 2021-01-18T21:15:07.341341 | 2015-09-16T02:14:53 | 2015-09-16T02:14:53 | 24,237,641 | 0 | 0 | null | 2015-09-10T19:58:24 | 2014-09-19T16:48:37 | null | UTF-8 | Python | false | false | 2,197 | py | import os
def readListFile(filename):#read file:filename lines into list
data_file = open(filename)
data = []
for line in data_file.readlines():
line = line.strip()
#print line
data.append(line)
data_file.close()
print "number of lines in %s:" %filename +str(len(data))
return data
def readGrepFile(filenam... | [
"magic2du@gmail.com"
] | magic2du@gmail.com |
15ea299c434064a33f3615f58c0dcb10acecf85e | a11e535d5722052ac2e40e69a956d9ce137f44eb | /apicore/migrations/0005_auto_20200118_0456.py | e8d5859ff3eb563b753a4c8c0c2207e7ac52afb6 | [] | no_license | rishardcarranza/media_server_api | 0cd95f02fb28b79d7c5674cdfa4376d3e83dfa2b | 5b194a11a393a7c21761f19c4516ea2bdceab335 | refs/heads/master | 2022-12-10T21:11:18.775046 | 2020-03-04T03:35:57 | 2020-03-04T03:35:57 | 182,611,089 | 0 | 0 | null | 2022-12-08T01:23:35 | 2019-04-22T02:44:01 | Python | UTF-8 | Python | false | false | 499 | py | # Generated by Django 2.1 on 2020-01-18 04:56
import apicore.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apicore', '0004_auto_20200118_0430'),
]
operations = [
migrations.AlterField(
model_name='filesuser',
... | [
"rishardcarranza@gmail.com"
] | rishardcarranza@gmail.com |
78f8c72253588f30be5f74b9f1bc849943ec2c03 | d5a919c678b9a2a48f6095b1c09a0b31fdf3610c | /resumelink/settings.py | 8183f71477e62baecb3ca191effff38679ff3a9e | [] | no_license | hardik-08-ldh/Resume-Urls | b5762496d96963655364704d2d9f52e217abc453 | 8cf3db695c2774c312229725b4eb2ad996b409ea | refs/heads/master | 2023-02-25T11:13:19.195921 | 2021-02-02T04:52:23 | 2021-02-02T04:52:23 | 335,166,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,851 | py | """
Django settings for resumelink project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"punjhardik2000@gmail.com"
] | punjhardik2000@gmail.com |
91472172c3c8cb90c9427a605a9f3e7f432b057d | 3d47a6bb73582e9fddba68eeda7ebc4e32326b41 | /tests/test_deap.py | 0f165f6d127cbdc0bf6c70b204bc15d6532ca1cf | [] | no_license | codema-dev/dublin-energy-app | c81467d470fe2f5897b99e9ca3755471ceb82627 | c8c10e06308e236f0d108309097c014cc8d34185 | refs/heads/master | 2023-08-02T08:41:57.784669 | 2021-09-20T10:36:27 | 2021-09-20T10:36:27 | 362,056,996 | 1 | 0 | null | 2021-07-19T15:50:42 | 2021-04-27T09:34:37 | Python | UTF-8 | Python | false | false | 6,937 | py | import numpy as np
import pandas as pd
from pandas.testing import assert_series_equal
import pytest
from dublin_energy_app.deap import calculate_building_volume
from dublin_energy_app.deap import calculate_fabric_heat_loss
from dublin_energy_app.deap import calculate_heat_loss_parameter
from dublin_energy_app.deap im... | [
"noreply@github.com"
] | noreply@github.com |
8483895b8fa4b5f8379ffa4f414ca877366e82e9 | 9a6576015e459e5091fe3439485e9e6050809fa7 | /project_01_alien_invasion/surface.py | 499789be03804c0336b9f96ebf1bfde54c10abdc | [] | no_license | ApollonKangGitHub/Python3_8 | 8c9f987a469f9ec5950ee3327af6578862d56afa | 466d662a2e895a9fc4910ea38d79b37ebba975df | refs/heads/master | 2022-11-08T23:08:11.302637 | 2020-06-25T04:51:07 | 2020-06-25T04:51:07 | 267,894,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | # "coding:utf-8"
#
#***********************************************************************
# Time :2020年6月1日22:40:39
# Author :Kangruojin
# Email :mailbox_krj@163.com
# Compile :Python3.8
# version :1.1
# Description :pygame.surface的屏幕操作
# FileN... | [
"mailbox_krj@163.com"
] | mailbox_krj@163.com |
61ebe137aa9759a6a83ac52206febd279a8ec5ec | 6ffc4385bfd9e514258661484bc1d95c4a674583 | /Model_Result(save subclip).py | 203bb45020aa5e5b6af1b0e6dae5e1536fbc5889 | [] | no_license | jhcha08/LoL_HiglightSummarizer | 0d717d7994dcbf00cfa53616cf263af6e060cd4b | 5049084b63d519b18e178dfa518f209afaa91146 | refs/heads/master | 2022-12-26T22:53:31.016901 | 2020-10-06T00:25:18 | 2020-10-06T00:25:18 | 293,207,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import os,shutil, sys
import numpy as np
import pandas as pd
import glob
from moviepy.editor import VideoFileClip, concatenate_videoclips
def make(csv_dir, mp4_dir):
# 모든 csv 불러와서 돌아가면서 시간값, 이름 읽기
all_csv_name_list = sorted(glob.glob(os.path.join(csv_dir,'*.csv')))
for csv_name in all_csv_name_list:
... | [
"noreply@github.com"
] | noreply@github.com |
d9a96ca2257f67b332788d7872fae84ba60753a1 | c5284dd32d2e74cad0616f9b4076895028561f70 | /primalidad.py | a941d9ffe93808b4af827983a58314cfb60ed8d8 | [] | no_license | guerrasoto10/Juegos-Python | 24d7e54b854444649df5944082086c46748b20df | 9a8af196a6ff723031106f62d9a9f0291013f07b | refs/heads/main | 2023-01-01T12:42:51.623839 | 2020-10-22T15:34:52 | 2020-10-22T15:34:52 | 306,374,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #Todo número que sea solo divisible entre el mismo y el 1 (es decir con Resto==0 al dividir entre cualquier otro numero
# diferente a el mismo o a 1) es Primo
def es_primo(numero) :
if numero == 1 :
print (" El numero 1 por convenio no se considera numero primo")
exit()
contador = 0
for i in... | [
"gaguerra84@gmail.com"
] | gaguerra84@gmail.com |
5000b3c9523360820a52d959df499283d87e3225 | 7bfb73047b138349bd87ab7efd63a7eee9535da9 | /app/kivymd/imagelists.py | feb23c02f697b5a72a738b925050c6374a74ed55 | [
"MIT"
] | permissive | S0AndS0/ExpenseTracker | 0172fca7dea349f8226e234bf5413203d5783e0d | 9f024184c499c3af9421d872168447a9c9fae45b | refs/heads/master | 2020-08-22T17:08:42.128400 | 2019-10-21T00:14:52 | 2019-10-21T00:14:52 | 216,444,172 | 0 | 0 | NOASSERTION | 2019-10-21T00:01:55 | 2019-10-21T00:01:54 | null | UTF-8 | Python | false | false | 10,682 | py | """
Grid
====
Copyright (c) 2015 Andrés Rodríguez and KivyMD contributors -
KivyMD library up to version 0.1.2
Copyright (c) 2019 Ivanov Yuri and KivyMD contributors -
KivyMD library version 0.1.3 and higher
For suggestions and questions:
<kivydevelopment@gmail.com>
This file is distributed under the terms o... | [
"adityabhawsingka@gmail.com"
] | adityabhawsingka@gmail.com |
2b9a90f0a413030ca009a0f86367d64668f8185f | ff0adeba161f1f254fca69a554433ec0b00c7fe1 | /demos/classification/cnn_demo.py | 48771dc08683fe2ce10ca603f116ac0bf4210bde | [] | no_license | GUOhm230/nlp-journey | 3f10110ced197e0c3a776adceaac69fcb9a44cf5 | 6d02f740372fe0cad6e0b430e93851df3fc5dea1 | refs/heads/master | 2021-02-13T07:08:21.916130 | 2020-03-03T09:44:52 | 2020-03-03T09:44:52 | 244,673,622 | 1 | 0 | null | 2020-03-03T15:34:24 | 2020-03-03T15:34:24 | null | UTF-8 | Python | false | false | 723 | py | import sys
from nlp.classfication.dl.cnn_classifier import TextCnnClassifier
sys.path.append('/home/msg/workspace/pythons/nlp-journey')
if __name__ == '__main__':
base_classifier = TextCnnClassifier(model_path='./model/cnn/',
config_path='./model/cnn/config.pkl',
... | [
"1107306870@qq.com"
] | 1107306870@qq.com |
32649caaa454b9462bb077ff562cdd21ed05b942 | 3ae8bb098ce29682c07f5c0c5d462238854a49f7 | /brfnt.py | 9b981e5061b961259154c0c72dcd4b6342d323b7 | [] | no_license | cualquiercosa327/smstools | c64a79bd48c62ff002acf759963f419387ce9c8c | 32f3641d7d162e854940ed66b0829dfceb306e66 | refs/heads/master | 2021-01-09T01:48:40.099527 | 2018-12-13T07:13:38 | 2018-12-13T07:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | #!/usr/bin/env python
import sys
from struct import Struct
from common import Section, BFile
from texture import readTextureData, decodeTexturePIL
class Tglp(Section):
header = Struct('>4x2x2xHH2x2xHHI')
def read(self, fin, start, size):
self.count, self.format, self.width, self.height, offset = self.... | [
"impiaaa@gmail.com"
] | impiaaa@gmail.com |
ac8a502ee922eb7c2a658a19bcba50c3f986b5ed | 60879ad3702c34f45d14445a3b6213e7a4d06750 | /organization/views/organization_add_edit_organ.py | ce20b261fc427306f90706cdedec7cbaeb529bad | [] | no_license | thomaslu3/Coorganate | 2abbd7b3f904c76cf992bb22c1f6ab982a01918d | 85b5b31ab9f9c8d762e656f55652325ee9afdd50 | refs/heads/master | 2022-04-13T05:43:27.606229 | 2019-07-13T05:54:12 | 2019-07-13T05:54:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,885 | py | '''
Created on Jul 9 , 2019
@author: Mahamat Oumar
'''
from django.shortcuts import render, redirect
from organization.models import Organization, Address, OrganAddress, UserOrganization, OrganizationOrgan
from organ.models import Organ, Person, PersonOrgan
from organ.constants import organ_types, races, blood_types
... | [
"thomas.lu@ibm.com"
] | thomas.lu@ibm.com |
67f60b54dff508dca26b48f7993a3c905a85083f | ed93e411bfa4adc4bd3f272f7fe3a4b393aee8e9 | /usr/lib/enigma2/python/Components/Renderer/ais.py | 832d0fb1f1f017b9788d7575303101d2dcce2eb6 | [] | no_license | bruco72/Metropolis2HD | ba406cadc3d9492968c814c235f0afacf3ab20f4 | f2bb576313bd2969a37cf0116799b31fcd2747e6 | refs/heads/master | 2021-01-22T07:02:57.202694 | 2015-05-12T11:47:51 | 2015-05-12T11:47:51 | 35,484,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | #######################################################################
#######################################################################
from Renderer import Renderer
from enigma import eLabel
from Components.VariableText import VariableText
from enigma import eServiceReference
class ais(VariableText, Rendere... | [
"eurosata.1@gmail.com"
] | eurosata.1@gmail.com |
0f59e9d7be71cd6be254771d849e16bd5d9d533a | 21485aa4196a90630db2f418385b08bb44ac4436 | /dymos/utils/simulation/simulate_phase.py | 94a0c655cf38d7bd0e97c64756af2e3ab461013f | [
"Apache-2.0"
] | permissive | bbrelje/dymos | a060303858556616c73de8d387a313b6489e1926 | ec9e193513acc039dea99ff1959b4536d858a3b6 | refs/heads/master | 2020-04-20T09:16:01.019131 | 2018-09-11T23:22:49 | 2018-09-11T23:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,725 | py | from __future__ import print_function, division, absolute_import
from collections import Iterable
from six import iteritems, string_types
try:
from itertools import izip
except ImportError:
izip = zip
import numpy as np
from numpy import ndarray
from . import ScipyODEIntegrator, PhaseSimulationResults
from ... | [
"noreply@github.com"
] | noreply@github.com |
9be4c0cfe1528de5ee29c120480cb7e74ee1c110 | b3ad6d480873ac91fc284efc6341568649898684 | /cohort/week6/cs1.py | b50661dfbe30716c9a6b8392c7f7626cd65dd870 | [
"MIT"
] | permissive | jamestiotio/DW2020 | e88af5f84f477e911b8414c02893da039fff9cf0 | 1639ccbcf77b64719bdc29bf2a373d19296fbd75 | refs/heads/master | 2022-10-30T12:48:39.147705 | 2022-08-14T12:16:35 | 2022-08-14T12:16:35 | 269,898,881 | 0 | 1 | MIT | 2021-11-04T16:30:20 | 2020-06-06T07:03:23 | Jupyter Notebook | UTF-8 | Python | false | false | 142 | py | def reverse(string):
new_string = ""
for char in range(1, len(string) + 1):
new_string += string[-char]
return new_string | [
"jamestiotio@gmail.com"
] | jamestiotio@gmail.com |
7fd3996e4952363b1019e65790369663f530f80c | df3ec33cb909781e78e0ef4a5fd3c34bffdc31d3 | /accounts/migrations/0010_deal.py | 0f7631b6ff4b56f8f30a5433643334acd82cb144 | [] | no_license | skampala1/CRM-APP-Django | b37d70f94e48b4e60bd835ef3505f8f05d4dcbdb | 19ef7ba81d84a64e679d1726f7891343096787d5 | refs/heads/master | 2023-01-02T05:18:39.468234 | 2020-10-24T11:29:51 | 2020-10-24T11:29:51 | 303,082,649 | 1 | 0 | null | 2020-10-24T11:29:53 | 2020-10-11T09:13:30 | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 3.0.6 on 2020-10-22 14:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0009_lead'),
]
operations = [
migrations.CreateModel(
name='Deal',
fiel... | [
"shkhan922@gmail.com"
] | shkhan922@gmail.com |
bf35e790cbc3a000e004ed85528cad1a653e37da | a8fff8e93f31eaeeeca32138d0d7a0280ecbc5a1 | /com/example/testOne/01Conv.py | 642a4c9b8b407c9cfe39cb3ee32c71b0e411cf97 | [] | no_license | angel1288/tensorflow0921 | 9d7fa51a28efc410149fa42ce8d580dd94fed5c4 | c9ae989d4f266b3d023492ec3109c3be36e1fb8c | refs/heads/master | 2021-07-02T01:48:36.507182 | 2017-09-22T08:13:52 | 2017-09-22T08:13:52 | 104,326,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | # encoding=utf-8
import tensorflow as tf
import numpy as np
print("1--------------------------------")
# 产生一个10*9维数组,数组中每个元素为9*3维矩阵,其中每个值在[0, 1)范围内(0-1正态分布)
input_data = tf.Variable(np.random.rand(10, 9, 9, 3), dtype=np.float32)
fliter_data = tf.Variable(np.random.rand(2, 2, 3, 2), dtype=np.float32)
y = tf.nn.conv2d(i... | [
"1531915260@qq.com"
] | 1531915260@qq.com |
d3bc215e96133041d21378de8b44274db887fe50 | 91e530103801905d99c7d22eed5a1c43bbd06161 | /belstaartandevents.py | 6f27eaaa3e6905ec05bd31e78355ba840b7e8683 | [] | no_license | DevStorage/upwork-scraping-tasks | bd30278e2e408f429c041b16eae31f26afc00508 | 633ad9aadf074f9deef043c12e554626d9c36587 | refs/heads/master | 2021-06-26T23:54:51.906644 | 2017-09-10T16:18:51 | 2017-09-10T16:18:51 | 103,042,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | import json
import urllib.request
import progressbar
from time import sleep
import os.path
json_urls = [
'https://progallerycdn.wix.com/_api/pro-gallery-webapp/v1/gallery/e59c31b8-2f06-41b5-9a89-35caaa1503d2/81578bc8-ce53-b7fe-e1b7-a4a11cd1bfaf/items/from/0/to/200?instance=aULyZbXUoe_hLZn4qu6EONlkop6H9fPU6v1oAc2p... | [
"padafaevgeniy@gmail.com"
] | padafaevgeniy@gmail.com |
a89f7551c6e7110c925d5c588dffb97eee504470 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/_api/v1/strings/__init__.py | ce1ec660353ce6c9b3396ee91e02d9336d97ded8 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:99d3d433550637101bcb96e96fa3ad768bd4fcf5d594eb911c360868a4a5bf1f
size 2083
| [
"github@cuba12345"
] | github@cuba12345 |
640330ca5afc333693c913899e330094662d374e | a1f32ccb921b2e0d67f52036e48470d6e8b0ed87 | /software_design/misc/Triangle.py | 48a96f8adbd94281d04d2f093cea0ae85bedd7d6 | [] | no_license | AlyssaYelle/python_practice | a3e3646fda2abc56b417cf4f39f8b31c5dd21c7f | 79b17bac6da98826a9eeba176472412ee98d15a3 | refs/heads/master | 2022-07-05T21:54:40.451721 | 2020-05-14T22:36:32 | 2020-05-14T22:36:32 | 115,549,901 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | '''
We take in as input a text file which represents a triangle
for example
3
1
2 3
4 5 6
where the top integer is the number of rows the triangle contains
we want to compute the maximum path sum.
Here we use four different algorithms
(exhaustive search, greedy, divide and conquer, and dynamic)
'''
import time
glob... | [
"alyssadanijones@gmail.com"
] | alyssadanijones@gmail.com |
aedb1dae8392d9549464c61f84cef60ff3c3b36a | f04c38bcc58a5aee6a89243aa09f211cb6abaab7 | /df_detector-master/func/dev_dfcluster.py~ | 2b9fa40543245b870ad318b0cb710d33070acaa9 | [] | no_license | HananDah/StammerClipper | 2a55c62880b70542fa190b3973c75c5418bebc35 | 11036eae1a27c415e633113024de3c00f4312c5d | refs/heads/master | 2022-04-01T08:33:08.517533 | 2020-01-01T02:46:05 | 2020-01-01T02:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,505 | #!/usr/bin/env python
# difluency detector using clustering
import numpy
import matplotlib.pyplot as plt
import imgoperator as imop
import time
import kaldi_io as kalIO
from swalignmod import swalign
import tmp_mysegment as myseg # for my experience
import dfio
def kldivergence(pdf1,pdf2):
# compute Kullback and Leib... | [
"polleronny@yahoo.com"
] | polleronny@yahoo.com | |
b11a963d9c35f0419107b6d7701cfc6c4152b92f | 7bc837b5004154644f11d5839e524b964cda6e0a | /mediaportal/core/views.py | 38ca6bc301613652f2e3e128afd0844334a111e9 | [] | no_license | sergeychibunin/project-1212 | c24ebadbde73192267a90b82a3f210cde5174d2b | 8c0c1ff0a9978064c0c10999d22e2a5808d35583 | refs/heads/main | 2023-01-12T05:49:18.545766 | 2020-11-11T14:58:34 | 2020-11-11T14:58:34 | 308,647,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from django.shortcuts import render
from rest_framework import generics
from core.models import Page
from core.serializers import PageSerializer, \
PageDetailSerializer
from core.tasks import increase_counter as celery_increase_counter
class PageListView(generics.ListAPIView):
queryset = Page.objects.all().or... | [
"chibunin1988@gmail.com"
] | chibunin1988@gmail.com |
e14b5d318e924ff4679b268cca39eba15055656c | 760d1a400899c97e71f678164e7b99151b0bd049 | /src/factored_mcnet.py | 87e3674689d39ee9378e5998adb4ac211c3a0485 | [
"MIT"
] | permissive | willwhitney/iclr2017mcnet | d7895dbb3d3d0b341ad12a0a970d74ae336eb2bc | f60da0bbed5a72b7f6dd908be5e0ace144703fc8 | refs/heads/master | 2021-07-11T06:29:30.286390 | 2017-10-13T18:13:43 | 2017-10-13T18:13:43 | 106,331,664 | 0 | 0 | null | 2017-10-09T20:24:47 | 2017-10-09T20:24:47 | null | UTF-8 | Python | false | false | 27,817 | py | import os
import tensorflow as tf
from BasicConvLSTMCell import BasicConvLSTMCell
from ops import *
from utils import *
import ipdb
class FactoredMCNET(object):
def __init__(self, image_size, batch_size=32, c_dim=3,
K=10, T=10, checkpoint_dir=None, is_train=True, nonlinearity="tanh",
... | [
"wfwhitney@gmail.com"
] | wfwhitney@gmail.com |
44f13b06501c88844326791074636fcd8c2adf20 | f1390c582fc8882217f8456be8855887b86b451c | /src/e190_bot/src/img_control/mario_kart.py | beb1aab7447190525bcdc535de4fb6ac6ea67829 | [] | no_license | dawsonc/e190ar | 734d68e8d1bc88a69d9cf2b7f241bb53e8efb054 | 627cba399fb490fde51be397fc11da4b34ce1283 | refs/heads/master | 2020-04-20T18:53:53.574981 | 2019-07-02T13:49:22 | 2019-07-02T13:49:22 | 169,034,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | #!/usr/bin/env python
import rospy
import rospkg
import serial
import tf
import numpy as np
from math import cos, sin, pi, exp, sqrt, atan2
from geometry_msgs.msg import Transform, Twist, Vector3
from fiducial_msgs.msg import FiducialTransformArray
from tf.transformations import euler_from_quaternion, quaternion_from_... | [
"peter.johnson.chs@gmail.com"
] | peter.johnson.chs@gmail.com |
6d72c628644e2d398d8db125a9bc5a7d8ef0a069 | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/sdk/deviceupdate/controlplane/operations/__init__.py | fcfbd4b1f52e9fbba906f0b37ee993a23e66a0b3 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 1,443 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
d8006fc3212d6b148cb18e1602f7604a4a18ac53 | 61faaf879485db674213e9d45639e7a25a02b320 | /hw4/Prob4/VisualizeCam.py | 40ee79e389ad13ec964713d1f82a309d31731c2c | [] | no_license | jimpei8989/ML2019SPRING | 21cea08e90a99137710de6ea7657b1555927469c | 3171316cb5af31d517be54700a4e55dc7574ec91 | refs/heads/master | 2020-04-24T07:23:25.311084 | 2019-06-07T14:45:36 | 2019-06-07T14:45:36 | 171,797,704 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | import os, sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from keras.models import load_model
from tensorflow import set_random_seed
from vis.visualization import visualize_cam
def ReadTrainingData(path):
df = pd.read_csv(path)
num, Xdim, Ydim = df.shape[0], 48 * 48, 7
print("N... | [
"wjpei@csie.ntu.edu.tw"
] | wjpei@csie.ntu.edu.tw |
616f03974cd89bef1eeb2c2a659cda7dfa0dd3ad | 2ed995a6dd3e91a0883177872eb96333277e33e7 | /Unicode_LP/CRUD_task/urls.py | c229b18591d277ff755cabc40065ef99ce4caf55 | [] | no_license | Chriscorr27/AuthWebApp | 6469130e8117c39e266bccc1459d534c9922e7f3 | 6fe004b6147c283eef55258812c2e7143daaed38 | refs/heads/main | 2023-03-03T23:46:10.050725 | 2021-02-11T04:09:09 | 2021-02-11T04:09:09 | 337,922,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('sendbox',views.send,name='send'),
path('mail_info/<str:id>',views.mail_info,name='mail_info'),
path('profile_info/<int:id>',views.profile_info,name='profile_info'),
pa... | [
"chriscorreia2001@gmail.com"
] | chriscorreia2001@gmail.com |
975de9975a9a39cbe4c0d7727322685bc5762de1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03645/s702030481.py | 0676433bb304179255b0f58e28e7315e9f4ba85a | [] | 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 | 371 | py | from sys import stdin
def input():
return stdin.readline().strip()
n, m = map(int, input().split())
edge = [[] for _ in range(n)]
for _ in range(m):
i, j = map(int, input().split())
i -= 1
j -= 1
edge[i].append(j)
edge[j].append(i)
for i in edge[0]:
if n - 1 in edge[i]:
print('POSS... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d1548533bbd4772134b1eb35f4625917f8311929 | 4c2c1775b6b319ae07155f46e70a6726ab0980c2 | /algo/algo_code/personal/cvr_space/model_train_exp/script/model_predict.py | d83956c20f098ea44510c425f8fc4512584682ff | [] | no_license | kiminh/util | 8e4b204849a57941120e37c9330772f03c8892d0 | 763a71031d9c0ef207b87dc03ebc55208a2dd5ad | refs/heads/master | 2022-06-09T06:09:13.221754 | 2020-04-27T04:23:00 | 2020-04-27T04:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import sys
import math
model_dict = {}
for raw in open(sys.argv[1]):
felds = raw.strip("\n\r").split(" ")
if len(felds) < 2:
continue
model_dict[felds[0]] = float(felds[1])
for raw in open(sys.argv[2]):
s = 0
for sp in raw.strip().split()[1:]:
w = model_dict.get(sp, 0)
s +... | [
"ling@lingdeMacBook-Air.local"
] | ling@lingdeMacBook-Air.local |
c2e523ab1ff7e56a1209026225b6a1f5d1049f9a | d62863d049c0206bfa744ca4c9e886030bfce1ab | /apps/sw_shop/sw_order/filters.py | 8fbf2cab68517611516c4be1eb8e79e99f52ae1a | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 142 | py | from admin_auto_filters.filters import AutocompleteSelect
class TagsFilter(AutocompleteSelect):
title = 'тег'
field_name = 'tags'
| [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
3d556d8e0c6be1368b829f2f9e0d84e4eea75160 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/h2o/schemas/metadata.py | 9582a1aaee3cc62f7c74ffa2f0fa2e14384a9fc0 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,142 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#
# noinspection PyUnresolvedReferences
from h2o.utils.compatibility import * # NOQA
class H2OMetadataV3(object):
@classmethod
def make(cls, json_kv_pairs):
return cls(json_kv_pairs)
def _... | [
"noreply@github.com"
] | noreply@github.com |
df41ee2bd97443d8713765f115ab9426f8bba856 | 7add8ddcaab3afebfeb385f50b447da57b51042b | /analyzes/time_make_perspective_df.py | ae5d5d501f287ed00361a64961060b71d1ed743a | [] | no_license | emanueljuliano/youtube_hatespeech | 1fa857d64f57fc598108c78a44ec81e894b98952 | caa0a22361b1430e5dd39be1042ea77993eb76ec | refs/heads/master | 2020-08-12T02:21:05.769669 | 2020-02-05T16:39:10 | 2020-02-05T16:39:10 | 214,669,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | import pickle
import numpy as np
import pandas as pd
from utilities.bootstrap import bootstrap
names_control = ["right-center", "center", "left", "left-center", "right"]
names = ["Alt-right", "IDW", "Alt-lite", "control"]
names_list_list = [["Alt-right"], ["IDW"], ["Alt-lite"], names_control]
bins_t_s = ["2016", "2017... | [
"emanueljulianoms@gmail.com"
] | emanueljulianoms@gmail.com |
0de714e49f871d8ef0eaad488040bcbabbacca73 | f3cdb2bae2ca6cbd045941ae0c2f4052e52de622 | /p2p/dataset.py | 04e28cc0ef5d167401736ee3081182e3dbb724bd | [
"Apache-2.0"
] | permissive | IQTLabs/3-D_DataAugmentation | bab6aead07235cccb2056b0ce25179e5bb871a82 | 3eb7fe156906df46151de5c4472274a1ccdcfbed | refs/heads/master | 2023-01-21T15:57:39.173956 | 2020-12-03T20:23:18 | 2020-12-03T20:23:18 | 298,663,332 | 0 | 0 | Apache-2.0 | 2023-01-23T13:56:28 | 2020-09-25T19:32:59 | Jupyter Notebook | UTF-8 | Python | false | false | 2,028 | py | import numpy as np
from PIL import Image
from torch.utils.data import Dataset
from torchvision import transforms
__all__ = ['P2PDataset']
class P2PDataset(Dataset):
""" Pose to Pose dataset definition loads two frame/pose pairs
"""
def __init__(self, df=None, transform=None, data_path=''):
""... | [
"mllomnitz@gmail.com"
] | mllomnitz@gmail.com |
e115b9278981bbcbbe60beb2cf269039f663bb3c | 2db16a8807eeffde5f25c83044e4337a8da27bcb | /Jewel.py | 21d794009afe91dc9bece90c977f64b9e50bd1c7 | [] | no_license | iBlitzkriegi/Jewel.py | feae2a3cab90743facd03a53a96549a99b532b24 | 1b03913dc1061034cec5ff9c8cfd811fe458560f | refs/heads/master | 2020-04-29T10:11:39.431099 | 2019-03-18T22:18:39 | 2019-03-18T22:18:39 | 176,052,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from commands.general import GeneralCommands
from commands.staff import StaffCommands
import Util
from discord.ext import commands
description = 'Jewel, the magical bot!'
token = None
bot = commands.Bot(command_prefix='!', description='Jewel the magical Discord bot')
bot.add_cog(StaffCommands.Staff(bot))
bot.add_cog(... | [
"junowars5@yahoo.com"
] | junowars5@yahoo.com |
f96426004f05d65e769972b85660423cd5ed7ac9 | d3bb67174a5b4d1deb089e2d9490f116520bf73c | /interference_pattern/shape_fitting/basinhopping_abcheck.py | 6d5d11c3fa620715c5b64621b878ffff020f1a67 | [] | no_license | hemengf/my_python_lib | d9eb32dd6de209afb9f0d45709e7fb156d34da99 | 08176ca44c4d016e4c88e6d3f4fd482ab62aeafd | refs/heads/master | 2021-06-21T03:23:05.703986 | 2019-06-24T23:41:10 | 2019-06-24T23:41:10 | 111,611,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,813 | py | #!/usr/bin/env python
from __future__ import division
import sys
import time
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib as mpl
from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable
from mpl_toolkits.axes_grid1.colorbar import colorbar
import nump... | [
"hemf@uchicago.edu"
] | hemf@uchicago.edu |
b781072e23c6dde5cbb9485db389e9e8cb191563 | 625ebb129cf05d539c295b8b2ec8334c1f2767ee | /worker/worker.py | bb960dcfff45f78926e7bf92515a1a7e92302d23 | [] | no_license | caphindsight/Testo | 83afe974a2c21f82492479d2271dc731a4c7a3a8 | cf37fe0c39bbf321913061da7b22cf9ed23c9a9e | refs/heads/master | 2021-01-21T12:32:20.971486 | 2017-06-06T10:41:23 | 2017-06-06T10:41:23 | 91,797,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | import base64
import logging
import os
import pymongo
import time
import yaml
from manager import *
from users_manager import *
import sandbox
import runner
class DbManager:
def __init__(self, db):
self.db = db
self.users = UsersManager(db['users'])
self.problems = Manager(db['problems'], 'problem')
... | [
"hindsight@yandex.ru"
] | hindsight@yandex.ru |
70f7e240c9d975ee845bf0986e44a548f6ebe4ec | 7d4cabd25f6c9b30513a2c1d08b766bbb3c57802 | /vacancies/models.py | c30b46e9a4e212021fe932bd00e0aedefc1ca62f | [] | no_license | Egor754/developer_vacancies | 890b95fac5a34e092de33153c7c1fffacd287405 | f97cb33f06f4c2606aeb61941e62393b04c7217a | refs/heads/master | 2023-05-30T16:26:22.795274 | 2021-06-18T22:06:02 | 2021-06-18T22:06:02 | 378,273,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,069 | py | from django.contrib.auth.models import User
from django.db import models
from phonenumber_field.modelfields import PhoneNumberField
from employment.settings import MEDIA_COMPANY_IMAGE_DIR, MEDIA_SPECIALITY_IMAGE_DIR
class Vacancy(models.Model):
title = models.CharField(max_length=255, verbose_name='Название вак... | [
"xel-boi@mail.ru"
] | xel-boi@mail.ru |
734bf8211cf76d87497a9023f0a6036d2c89b55b | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/euler88.py | 438947a9585065bb73e52c6e4fe46d5db173dc3c | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def prodsum(prod, sm, facs, curfac, mins):
k = prod - sm + facs
if k < 12000:
mins[k] = min(mins[k], prod)
for fac in range(curfac, 24000/prod):
prodsum(prod*fac, sm+fac, facs+1, fac, mins)
def euler88():
mins = [24000]*12000
prodsum(1, 1, 1, 2, mins)
return su... | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
09e7253bb1f7ffb40c489d9dc0804cfa9872bc6f | a08f93439fff8ef2a79deaf0485e51116edef3bd | /libraries/natives.py | ff5343cc218eb2f34e06a8ac719fc80cf94adec7 | [] | no_license | rk00/medusa | e219e9a6c3461359c45694471a10b24e2420e6b7 | 5bfc8f6f963020ad01c6ecfdc9b1b83333eca9fc | refs/heads/master | 2023-08-22T07:41:24.644335 | 2021-10-18T13:15:57 | 2021-10-18T13:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,572 | py |
import frida
import time
import sys
import click
RED = "\033[1;31m"
BLUE = "\033[1;34m"
CYAN = "\033[1;36m"
WHITE = "\033[1;37m"
YELLOW= "\033[1;33m"
GREEN = "\033[0;32m"
RESET = "\033[0;0m"
BOLD = "\033[;1m"
REVERSE = "\033[;7m"
class nativeHandler():
modules = []
device = None
script = None... | [
"valsamaras@gmail.com"
] | valsamaras@gmail.com |
8ce62ba7f95a4b63c414ab572c3b64a9e5be050b | f61d367d686a5440a66ce841db3bebe9bc86d9d0 | /mainapp/migrations/0001_initial.py | 2ba4d6574eb9c7cc66e369f35509db799b1dd716 | [] | no_license | titan3755/passwordmanager | d5648589078dfb48e86e5c61b1cdd2b9c307a105 | 7c843cb03445b147be02b005a0620b1cb2a01c21 | refs/heads/main | 2023-05-05T15:55:00.604120 | 2021-05-26T07:31:32 | 2021-05-26T07:31:32 | 370,767,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Generated by Django 3.2 on 2021-05-25 03:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PassWord',
fields=[
('id', models.BigAutoFiel... | [
"68808479+titan3755@users.noreply.github.com"
] | 68808479+titan3755@users.noreply.github.com |
4caa1793fbe4fdbffb5df17f47c2cdc3fb28cedf | e6ba264fd7dbca92c64b8655f4e3812d6b4a0f42 | /blog/models.py | 5726d9eed811967df81ac209a5e37b77d43619f0 | [] | no_license | BisonJuzi/portfolio | 3f816ee93cd51e49c9e332fc25c702a44262829e | f9a5ada1658a42847bc4fc7710d6969f804fd086 | refs/heads/master | 2020-03-22T19:44:03.991999 | 2018-07-11T08:20:12 | 2018-07-11T08:20:12 | 140,547,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from django.db import models
# Create a Blog models
# title
# pub_date
# body
# image
# Add the Blog app to the settings
# Create a migration
# Migrate
# Add to the admin
class Blog(models.Model):
title = models.CharField(max_length=255)
pub_date = models.DateTimeField()
bo... | [
"liujuan_chener@foxmail.com"
] | liujuan_chener@foxmail.com |
15d1b7d35de3fea99c6803e5ab97782abc4108f3 | af5395736a979d450489faa6a13ba4fadc917b28 | /con.py | 59856b1e729426fec7eb1907ea156e43e23d2ce1 | [] | no_license | garni-kh/think | 4670b0c3e8ab476d1b728a6161328d80685ad31c | d7898a4a2da6a3da7d3839229d6072f9188e2188 | refs/heads/master | 2021-01-01T19:35:14.644806 | 2015-07-24T20:18:06 | 2015-07-24T20:18:06 | 39,575,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | import csv
import click
from datetime import date
from datetime import timedelta
from datetime import datetime
from time import gmtime, strftime
import time
import re
@click.group()
def cli():
pass
@click.group()
def think():
pass
@think.command()
@click.option('-m')
def add(m):
"""you can add every thiin... | [
"garni.kh@gmail.com"
] | garni.kh@gmail.com |
d52811079f41eda2f368b3c38d66c9672f5d5206 | c10d1c80602f77741acb4e0e79b5e20ebbf7d104 | /functions.py | c14fae62b6507acb99a5024fdaa07a5c8870ba7d | [] | no_license | p-szymo/whitman_analysis | 760ef72d8781515b21a99b854cbbacf0e96f8ac1 | 4b40ec0d1cc92e87d1f292863b6ff753f58de25a | refs/heads/master | 2023-01-06T04:25:50.280203 | 2020-10-29T14:37:43 | 2020-10-29T14:37:43 | 302,068,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,137 | py | # dataframe packages
import pandas as pd
import string
# nlp packages
import pronouncing as pr
import nltk
from nltk import RegexpTokenizer
from nltk.stem import WordNetLemmatizer
from nltk.corpus import wordnet
def string_adder(source, orig, start_index, end_index):
'''
Function to combine several strings ... | [
"joshua.szymanowski@gmail.com"
] | joshua.szymanowski@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.