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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4e34535beb155e2f12a9bd88cb18922c343dae4 | 0c1d6b8dff8bedfffa8703015949b6ca6cc83f86 | /lib/worklists/operator/CT/v3.0/business/ADSL_2LAN/IPTV_Enable/script.py | 239d0f5d606aae2a2351a300200d9ef17e72cb09 | [] | no_license | samwei8/TR069 | 6b87252bd53f23c37186c9433ce4d79507b8c7dd | 7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c | refs/heads/master | 2021-06-21T11:07:47.345271 | 2017-08-08T07:14:55 | 2017-08-08T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,245 | py | #coding:utf-8
# -----------------------------rpc --------------------------
import os
import sys
#debug
DEBUG_UNIT = False
if (DEBUG_UNIT):
g_prj_dir = os.path.dirname(__file__)
parent1 = os.path.dirname(g_prj_dir)
parent2 = os.path.dirname(parent1)
parent3 = os.path.dirname(parent2)
parent4 = os... | [
"zhaojunhhu@gmail.com"
] | zhaojunhhu@gmail.com |
5ed563763104010b90e8a748c678a58d96d09eb2 | 8a5ac559105d88dfd21ccf54590c0d23b360a2fb | /plugin/support/Conflict.py | ff128773d6dcd794043edf574ad8c63ed8f86464 | [] | no_license | umlfri-old/addon_team | f8eb514f7cd2fb539a38c877d098d7258cad7ce5 | eb050a93ef955b8fbc184a437cb0e6fae54264cd | refs/heads/master | 2021-01-20T16:36:16.944584 | 2013-06-13T09:19:03 | 2013-06-13T09:19:03 | 90,844,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | '''
Created on 29.3.2010
@author: Peterko
'''
class CConflict(object):
'''
Class representing conflict situation
'''
def __init__(self, baseWorkDiff, baseNewDiff, text = '', relatedObjects = None):
'''
Constructor
@type baseWorkDiff: CDiffResult
@param... | [
"peter.turza@gmail.com"
] | peter.turza@gmail.com |
23fcccfea46e4a7be38589c75521214a96b1bdf8 | a05f733ecee1e68a0c0df9ea7f7e9a07159cb625 | /RooomieAPI5/RooomieAPI3/urls.py | d4121a2e77625091d99eb8543f419f0823d8a347 | [] | no_license | goodstart57/Django-Server-Android-Client | 60bba644ec06d588490d19421dc9678c54574623 | acf4f0725d57b357cd99b489d89a8e9d0941adfb | refs/heads/master | 2020-03-19T03:24:23.116116 | 2018-06-05T07:10:22 | 2018-06-05T07:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """RooomieAPI3 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')
Clas... | [
"jsstatcom@gmail.com"
] | jsstatcom@gmail.com |
11494d0f477922dae97e764d52a34ac407be78a6 | bb6fc5f83fc507c76f3701a1f23d76574ce5b274 | /tests/base_test.py | 4765b48d1ce45b274d38fe56da7fd3efa5dcaad5 | [] | no_license | yuriscosta-zz/rest-api-test-course | 67da6796d14ac5001baca747c75f394e59ac9982 | 656ddb267db10b1edba591d34a76f545bbb33e17 | refs/heads/master | 2022-07-10T12:58:50.799735 | 2019-06-13T07:04:17 | 2019-06-13T07:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | """
BaseTest
This class should be the parent class to each non-unit test.
It allows for instantiation of the database dynamically
and makes sure that it is a new, blank database each time.
"""
from unittest import TestCase
from app import app
from db import db
class BaseTest(TestCase):
@classmethod
def setU... | [
"yuri.sales@protonmail.com"
] | yuri.sales@protonmail.com |
4d4187b71ae7ac336528ed6d4eca8eb843f207a4 | 8c37866b6fe9f4e0673a8d9aa79d06083344e674 | /projet/catkin_ws/build/image_pipeline/image_view/catkin_generated/pkg.installspace.context.pc.py | 88cae690e3cdeaa82d7f6ae00407e961d459809b | [] | no_license | vishu2287/Stagerobot | da97d191609ffd8af6998c6c115a182ca5191d9b | 6a65814df6a275ac0adbe4cf6b57f3954f3ba5b6 | refs/heads/master | 2021-04-28T04:02:05.732632 | 2016-09-07T10:42:15 | 2016-09-07T10:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/firefly/projet/catkin_ws/install/include".split(';') if "/home/firefly/projet/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "dynamic_reconfigure".replace(';', ' ')
PKG_CONFIG_... | [
"isabellezheng1110@gmail.com"
] | isabellezheng1110@gmail.com |
e30cf246a5412c19e125b725487e8685d9c752ea | 2353143da7a748eaa32e474b4bf733ae7a4209b1 | /openCVlearn/face detect/facedet.py | 4d5543eaff20f9fa4fdb15a80be2fda047fbc123 | [] | no_license | twitchyliquid64/archive | a6c5b55c7182f178f21d550dea55573c3fb7608c | c0b0b2f63dc81c26cc3acad50a0f63b0006174b7 | refs/heads/master | 2021-01-12T12:47:17.579949 | 2018-10-11T03:22:52 | 2018-10-11T03:22:52 | 69,858,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | import numpy as np
import cv2.cv as cv
import cv2
cap = cv2.VideoCapture(0)
def draw_rects(img, rects, color):
for x1, y1, x2, y2 in rects:
cv2.rectangle(img, (x1, y1), (x2, y2), color, 2)
def detect(img, cascade_fn='haarcascades/haarcascade_frontalface_alt.xml',
scaleFactor=1.3, minNeighbo... | [
"twitchyliquid64@ciphersink.net"
] | twitchyliquid64@ciphersink.net |
feeb455ad432ca1344e857c0e655b2f3d4c50ce9 | 45ead2ca4c08216249e8b58c6bb9573651ff9d7f | /pylib/serendipity/utils/app.py | 2e943e2e108bd5cf1f0b359f3d1b6864e8893c21 | [] | no_license | webclinic017/serendipity | 21cbe2c7602df8bcea50991bf35ebcc4a004dc21 | 1c6927031dc2a9ba968710188872e510d2897160 | refs/heads/main | 2023-06-11T14:34:52.007674 | 2021-07-02T22:21:49 | 2021-07-06T22:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | import argparse
import json
import pathlib
from serendipity.gen.serendipity_config import ApiClient
from serendipity.gen.serendipity_config.models import SerendipityConfig
class App:
_parser: argparse.ArgumentParser
_config: SerendipityConfig
_parsedArgs: argparse.Namespace
def __init__(self, desc: s... | [
"chandrapenke@gmail.com"
] | chandrapenke@gmail.com |
51f16a499c64119c9437564c782451e1ed56a5ae | c4576ed34ad1d9066c6d8dcf9e017ec345f23114 | /locallibrary/catalog/migrations/0002_auto_20200117_0649.py | b7c785200143752993586b377dd263b39d7cc473 | [] | no_license | aspiringguru/mdnDjangoLibraryDemo | 14151d19bfc1240700e2f5b3613974df6b21174b | 506038fd64719e5a4a9d174e76af4704e01b380a | refs/heads/master | 2020-12-12T22:12:49.601036 | 2020-01-17T21:43:51 | 2020-01-17T21:43:51 | 234,243,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Generated by Django 2.2.9 on 2020-01-17 06:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Language',
... | [
"bmatthewtaylor@gmail.com"
] | bmatthewtaylor@gmail.com |
d342a41c63df6d4cf2b8f0660392d08df7cea5d1 | e7b98d027990b23a522b4811afc79251de5b28b0 | /course/w21/2/Ins_Logistic_Regression.py | a16e23d0d7e7deb92ae77f4a5de4a07fd9c71eae | [] | no_license | eufmike/wu_data_bootcamp_code | 122594eeb935d10bfdba1dfbc06d5df711328378 | b90cc3f10d3fb256a8089609e6182465a01f7f20 | refs/heads/master | 2021-06-30T12:43:19.047349 | 2019-04-12T22:01:50 | 2019-04-12T22:01:50 | 141,653,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | #%% [markdown]
# # Logistic Regression
#
# Logistic Regression is a statistical method for predicting binary outcomes from data.
#
# Examples of this are "yes" vs "no" or "young" vs "old".
#
# These are categories that translate to probability of being a 0 or a 1
#%% [markdown]
# We can calculate logistic regressi... | [
"sc2.shih@gmail.com"
] | sc2.shih@gmail.com |
0f8fc3d98748afbbf05c894f9984c0b2e276ed05 | adccb7277a379c0456857791bd86d1fae3d9b0b1 | /THESIS/modules/old_modules/basic.py | 0af33cd0627413279a2a66d7787e57ccf8fff6c9 | [] | no_license | saratanov/git_honours | 7caeec490189ca81d830397cf6d45848cd32deb2 | f233469ab93ce5fdec1ac1121329031226c95464 | refs/heads/master | 2023-08-25T14:58:15.292910 | 2021-11-12T03:12:16 | 2021-11-12T03:12:16 | 388,665,015 | 0 | 0 | null | 2021-10-19T22:01:06 | 2021-07-23T03:24:57 | Jupyter Notebook | UTF-8 | Python | false | false | 12,516 | py | #basic functions for ML
#IMPORTS
from collections import defaultdict as ddict, OrderedDict as odict
from typing import Any, Dict, List
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from rdkit.Chem import PandasTools, AllChem as Chem, Descriptors
from rdkit.ML.Descriptors... | [
"u6676643@anu.edu.au"
] | u6676643@anu.edu.au |
bf25b4400e9228e1c2e426d4cd22080e927d166d | 917fcf4ae7bededf789e5e7d295266027a8513aa | /dcl/dcl/doctype/dcl_appraisal_entry/__init__.py | 55e56e301b82874aae85a7d26f6d2caa9ca2f662 | [
"MIT"
] | permissive | OlamideD/prometheus | 6374626a346e5b9dc9ce33713813f9a4579560c8 | d954e0dab63b0e31629e935a43b5c76b117a1f21 | refs/heads/master | 2020-12-03T08:31:37.207433 | 2020-05-14T18:22:56 | 2020-05-14T18:22:56 | 231,253,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import frappe
@frappe.whitelist()
def get_kpi(template):
return frappe.db.sql("""SELECT tasks,kpi,section FROM `tabDCL Appraisal KPI` WHERE parent=%s ORDER BY idx""",(template),as_dict=True)
@frappe.whitelist()
def get_topics(template):
return frappe.db.sql("""SELECT topic FROM `tabDCL Appraisal Remarks` WHE... | [
"davidisbanjo@gmail.com"
] | davidisbanjo@gmail.com |
2cbf2e57daaf78dda0e960a781c1313c809091ca | 5d4e1fdfb215dd4fe51fed7cec33fe2f46467d94 | /convert-extract.py | 1405fbccaea19531046221c880eb6a5fc6e9d756 | [] | no_license | ENIGMA-exe/dicom_operation | f75f6e1396b66b174582fcce1dfef60e5e892f87 | 834864cd1d3e909a3914c57e43c84b915a866cfa | refs/heads/master | 2021-02-27T04:31:45.234201 | 2020-03-07T06:31:51 | 2020-03-07T06:31:51 | 245,579,075 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import pydicom as dicom
import matplotlib.pyplot as plt
import os
import cv2
import PIL # optional
import pandas as pd
import csv
# make it True if you want in PNG format
PNG = False
# Specify the .dcm folder path
folder_path = "stage_1_test_images"
# Specify the .jpg/.png folder path
jpg_folder_path = "J... | [
"noreply@github.com"
] | noreply@github.com |
93558df5138c81cab1a38691fe0049b04e53c372 | 4bd4ed964979ce708f9d74037b2ac191103f28e3 | /CreatureTools_n.py | 2e72c0a7d8804fab69c8fee39316387180fc36e4 | [] | no_license | PFLigthart/virtual_creatures | b262f4d634566de9d84b4414c03dd13945c5a31a | 1908e24fefce83b2418a39b32dd7aadee9620356 | refs/heads/master | 2022-04-15T10:48:38.888410 | 2019-11-25T10:36:51 | 2019-11-25T10:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,234 | py | import numpy as np
from shapely.geometry import LineString, MultiLineString
from math import radians, cos, sin, pi
import re
import random
class Creature:
"""
Generates a complete virtual creature
Tests
-----------
"""
def __init__(self, params):
"""
Initialises a simple L-sy... | [
"zjmonkey.joubert1@gmail.com"
] | zjmonkey.joubert1@gmail.com |
61afc73a9aad682769aeb1c0542ed0014f62cb09 | dc0778b1761c27cb0248fd478b3705ea63195d1e | /JAVAC.py | b7e87f46ae7a0f0574df23ae01ce68cb2567ec7f | [] | no_license | arpitkath/SPOJ-solutions-in-python-2.7-and-c- | 7e07218174593b9ac2beab016ae15cc7300a6c80 | 9619c5250e872e8b3a59f31daa3876928aa5e430 | refs/heads/master | 2016-08-12T03:41:30.937203 | 2016-01-02T11:51:24 | 2016-01-02T11:51:24 | 48,908,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # cook your code here
def javac():
#s=s.split()
s=raw_input()
s=list(s)
un=False
count=0
if s[0].isupper() or s[0]=="_":
return "Error!"
if s[-1]=="_":
return "Error!"
if "_" in s:
un=True
for i in range(len(s)):
if s[i]=="_" and s[i+1]=="_":
... | [
"arpit.kathuria07@gmail.com"
] | arpit.kathuria07@gmail.com |
e84cf6388b021ce43fb95f92398de344cf23dccb | 242426963da38f58491c87d7c82179563c2b0fec | /v0.1.0/app.py | 27a56d71445c2537e47bfc947a7dfbe70f338fdd | [] | no_license | chenqizhi1/tk-multi-assetnamefilter | 7ce5e723dfadc6db4f8bb70d9ea7e8e833874a94 | 9e77735dd4eeac7f7f966c2d461a490f21e75856 | refs/heads/master | 2022-06-02T21:19:04.302801 | 2020-04-28T07:52:32 | 2020-04-28T07:52:32 | 259,568,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from sgtk.platform import Application
class AssetRenameFilterApp(Application):
def init_app(self):
app_payload = self.import_module("app")
menu_callback = lambda: app_payload.dialog.show_dialog(self)
self.engine.register_command("Asset Rename Filter App...", menu_callback) | [
"chenqi@DESKTOP-4GJEVPU.ssyl.com"
] | chenqi@DESKTOP-4GJEVPU.ssyl.com |
928b81c16a9a254cd163705ac637b299b7677715 | b4c8cd24e4b572a1cb478215e9c1bfe2ace7ab5c | /iact/iact/doctype/corrective_action/corrective_action.py | 93ef277809886e321e202cb651d8cefe235bc80f | [
"MIT"
] | permissive | iMoshi/iact | c0c44517a09666e5ba13663bdda78230e75b2081 | 08b609f82832666bb18710303f6f8122b367b5f6 | refs/heads/main | 2023-01-07T07:04:46.364158 | 2020-11-10T03:40:09 | 2020-11-10T03:40:09 | 308,816,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Manduul B. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class CorrectiveAction(Document):
pass
| [
"root@vmi428573.contaboserver.net"
] | root@vmi428573.contaboserver.net |
271e3df2a061decf0299b1f41f89c0d04c0a01ba | 1c5f417eccbd191bfb95835c3ef064ed5cb1d2ca | /hw1-2/main.py | c8891b551514a6d7f2842cad7f44fea90be89c61 | [] | no_license | novokrest/CVision | 02f5b8044cfb72f5d88e620d58578a083dc64ee5 | a730573699d3f29659b6c25d8f87d3fff8afa982 | refs/heads/master | 2021-01-23T06:44:29.984931 | 2014-12-17T01:47:45 | 2014-12-17T01:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | __author__ = 'novokonst'
import cv2
import numpy as np
import io_settings as io
IMG_PATH = 'text.bmp'
SETTINGS_PATH = 'settings.txt'
def dilate(in_img, params):
kernel = np.ones((params['dilate_kernelX'], params['dilate_kernelY']), np.uint8)
out_img = cv2.dilate(in_img, kernel, iterations=1)
... | [
"novokrest@Novokreshchenovs-MacBook-Pro.local"
] | novokrest@Novokreshchenovs-MacBook-Pro.local |
ff0b06788f6bf3cb84339be740eb622e13b6a23d | c7c1f53d324e4bf1e8e506ab1853b21b9e7ea7f9 | /app/app/urls.py | 75b879d8c338d42e4b1bf2128afe25f72e7726e6 | [
"MIT"
] | permissive | Lioscro/django-postgres | 25a5d9658b32b04ecdcb297606895b8b4792cec5 | c7674fd55a6728a95f82f3571c4c6699ceef4647 | refs/heads/master | 2022-06-12T04:25:13.019138 | 2020-05-04T19:26:26 | 2020-05-04T19:26:26 | 261,274,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | """app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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 vie... | [
"kmin@caltech.edu"
] | kmin@caltech.edu |
03d73c0639a8e2368c6391f4ef8c114bbdf2816a | 0d23277ab77b9f38f1bd78cc6d77d2016a7c71ed | /opencv-examples/webcam.py | a82ca5e59fcde6941cde44fe35764eebb69dcca4 | [
"MIT"
] | permissive | neslihanedes/pigeon-tracker | 7acfb2f44060202f0fc278d542a7a18bd16c2d58 | 451643383e5296151e69877b208dcb17dc8511b8 | refs/heads/master | 2020-03-21T11:20:21.401147 | 2019-09-14T10:24:29 | 2019-09-14T10:24:29 | 138,501,457 | 3 | 1 | MIT | 2019-09-14T10:24:29 | 2018-06-24T17:19:56 | Jupyter Notebook | UTF-8 | Python | false | false | 155 | py | import cv2
cam = cv2.VideoCapture(0)
ret, image = cam.read()
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow("webcam", image)
cv2.waitKey(0)
| [
"kevin.wittek@styracosoft.de"
] | kevin.wittek@styracosoft.de |
d7a075635ae5fbb18b0a85186a51d865ce2f66c8 | 36ea76be88d099214d2afb36f23404e9a37d1c7b | /venv/Lib/site-packages/libbiomedit/dpkg.py | 681e6569d91da7d0d6d732b458490ecef09aa656 | [] | no_license | abdulaziz-damlahi/BRINGME | d451b381b34550b0e927c2dc1e11c7698367f515 | c703698650980e21fca0936f253496d10537e0e1 | refs/heads/master | 2022-12-17T17:54:53.489976 | 2020-09-14T13:24:32 | 2020-09-14T13:24:32 | 289,463,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | METADATA_FILE = "metadata.json"
METADATA_FILE_SIG = "metadata.json.sig"
| [
"celikyuksell@gmail.com"
] | celikyuksell@gmail.com |
fb600e13727a8839b60f4dc137e05dcd5481164b | 2f346c81c57697402abc64bd282303b17287883d | /salt/modules/vbox_guest.py | ab0cbd325b57dc8d0c7e4c27b3985220aea50aa7 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | lilinji/salt | 4d5b7647f88b5a8ba6495c9449d3d234514692f8 | 93901ef446e9dea7149f034cdc211afbfdb3283b | refs/heads/develop | 2021-08-26T06:55:17.491179 | 2014-09-21T18:45:39 | 2014-09-21T18:45:39 | 24,315,015 | 0 | 0 | NOASSERTION | 2021-08-11T01:00:57 | 2014-09-22T05:07:43 | null | UTF-8 | Python | false | false | 10,854 | py | # -*- coding: utf-8 -*-
'''
VirtualBox Guest Additions installer
'''
# Import python libs
import contextlib
import functools
import glob
import logging
import os
import re
import tempfile
log = logging.getLogger(__name__)
__virtualname__ = 'vbox_guest'
_additions_dir_prefix = 'VBoxGuestAdditions'
_shared_folders_gro... | [
"infroma@gmail.com"
] | infroma@gmail.com |
1b33ab9604e74691e5dee4788a94c4d3c15b0574 | 735a638dbabaa334dede8e322dea3260cc7e62cb | /Question_B_main_2.py | eae78d53c88f43a94d1c4495bf01b3b6b80cbc7f | [] | no_license | bill12m/Boosting-Algorithm | 0dc4e9bf641109ea24950b4fa661817b1f07a75b | 697b2541c9b763fce37b3eae7d884664fe7c2918 | refs/heads/master | 2022-06-18T05:42:51.633912 | 2020-05-08T19:38:40 | 2020-05-08T19:38:40 | 262,412,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,467 | py | import pandas as pd
import numpy as np
import subprocess as sp
from pprint import pprint
sp.call('clear', shell = True)
#Functions for calculating variables in the program
#Calculate the updated probabilities each epoch
def probability_next(error,probability,classified):
if classified == False:
probability... | [
"wjm6g3@mail.umsl.edu"
] | wjm6g3@mail.umsl.edu |
f3750898abd21b4ca12fc3e4f811d2860afa9284 | 6fa5e57e532dc2153bca37c2277bf3b97d4075ab | /users/models.py | 4b4acfe4605387551cf6ba8de8a79a4125e3bd1f | [] | no_license | Kirom/Starnavi_SocialNetwork | 2156c8b2bb9b682fb06ea0d21c1dd8e38185de6e | 3c50ffb42bd02c9be2658571af0b6f323d5c15b0 | refs/heads/master | 2022-12-14T08:15:55.913557 | 2020-09-20T17:21:08 | 2020-09-20T17:21:08 | 297,118,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
class ExtendedUser(models.Model):
"""Extends basic user's model with last_activity field."""
user = models.OneToOneField(User, on_delete=mod... | [
"Vityamirono@yandex.ru"
] | Vityamirono@yandex.ru |
b9606c648ec7f45cdf12eb408bc2bfabf808781d | 068c02748396264ab920d93f4946132d01155f59 | /gonderi/migrations/0003_auto_20190711_1307.py | c5d324fd85f57e5de226c702639d135a584fbc1f | [] | no_license | sumeyyekilic/Django-WebApp | 8b1752c5cda6078dff98d63527cfca2c3fb014b2 | 3d2da87d714caae55a7fd550539e9efac0212dd6 | refs/heads/master | 2020-06-04T18:10:52.953144 | 2019-10-31T05:59:25 | 2019-10-31T05:59:25 | 192,136,312 | 5 | 0 | null | 2019-10-31T06:00:37 | 2019-06-16T00:49:45 | Python | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-07-11 13:07
from __future__ import unicode_literals
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('gonderi', '0002_auto_20190711_0002'),
]
operations = [
migrati... | [
"smyyekilic@gmail.com"
] | smyyekilic@gmail.com |
5c7976edead708118e08f0ad7521fa3996ba1099 | 0c8cc4974e2e15a9d499770fb4ba5d084db2b057 | /ona/tunablefilters.py | 42cc1379e4781326c22449bbeb6244ba3117069c | [] | no_license | FSlyne/tcdona | e755c95242e55d6e0d753d2394120d10ee65c0e7 | 0783b6ef8998c4fa85586d58cc38ad2024281176 | refs/heads/master | 2021-08-17T04:32:44.907543 | 2021-07-05T22:11:20 | 2021-07-05T22:11:20 | 74,145,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from ona.serialbase import *
class dicon_tunablefilter(serialb):
def __init__(self, COM_PORT,baudrate=115200,debuglevel=0):
super(dicon_tunablefilter,self).__init__(COM_PORT,baudrate,debuglevel)
def diag(self):
for cmd in ['ID?','FW?','SN?','TP?','WR?','WL?']:
print self.sendcmd(cm... | [
"frank.slyne@gmail.com"
] | frank.slyne@gmail.com |
2dc55434ec4fd7ab3cbead8231c33a950f4764ec | 790b7383de370ed73cb67bac9c6c939a4896fae3 | /Aula 20 M 3.py | 48efb49faf48e0fb1db3020696766903ddfbdba5 | [] | no_license | mfalcirolli1/Python-Exercicios | 08e0550b762a5a527ae7e308753f619569e9b213 | 011c01c0bc21ce631d8e5d832b735f8403852540 | refs/heads/master | 2020-07-27T13:22:05.183863 | 2020-07-01T16:59:36 | 2020-07-01T16:59:36 | 209,103,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Funções (Parte 1)
def soma(a, b):
print(f'A = {a} e B = {b}')
s = a + b
print(f'A + B = {s}')
soma(b=4, a=5)
# a = 8
# b = 9
# s = a + b
# print(s)
def contador(*num):
tam = len(num)
print(num)
print(f'Recebi os valores {num}. Ao todo são {tam} números.')
contador(5, 7, 3, 1, 4)
contad... | [
"fmatheus8@gmail.com"
] | fmatheus8@gmail.com |
9ca94690bb45055b937362eb8d124f662263207c | 1c479c7462cd8aac7208c647f78bb56f4850c06b | /complete_series/test_complete_series.py | e091933357a3a301f6a095e8d3a58ae268f77448 | [] | no_license | JVFayad/python-tests-study | 99ebcff8cd8ad83935961305b4dea2c0134d4faa | a7272070162e76e3cd581766cd09d905bf72f556 | refs/heads/master | 2022-09-16T16:49:24.706267 | 2020-06-02T22:28:37 | 2020-06-02T22:28:37 | 268,918,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import pytest
import random
from complete_series_code import complete_series
def test_should_return_list():
response = complete_series([])
assert isinstance(response, list)
def test_should_return_list_with_zero_if_number_repeats():
response = complete_series([1, 1])
assert response == [0]
def t... | [
"joao.victor.fa2014@gmail.com"
] | joao.victor.fa2014@gmail.com |
7740d20861d84971ca5b94cffdf639e5ab9809f6 | 51719fb8d74c5cfdecdebc76d9f6ce8d96ab85a6 | /crm/tests.py | 85d8a6097c7aa27f967a21589a501f031289ac6c | [] | no_license | seventeenxie/manage | 3f1eae7565d12e91f24ae3a7d1cd5e39f481489e | e57c63315008e803e6457f21eb70502a20fd220a | refs/heads/master | 2020-03-18T14:55:24.770346 | 2018-06-11T14:49:34 | 2018-06-11T14:49:34 | 134,875,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.test import TestCase
from django.forms import ModelForm
# Create your tests here.
from crm import models
class Test(TestCase):
def setUp(self):
print("======in setUp")
def test(self):
objs=models.Customer.objects.all()
for obj in objs:
print(obj.name)
def tearDown(s... | [
"309735651@qq.com"
] | 309735651@qq.com |
659ebd1795ef61d9fb0502736b0976d9ff7cea3a | 6c6f4d75d93d39b3ad26c7b2c2a581d8d326b0dc | /apps/login/views.py | b239c6142ac647c6d0264a63e1b8823da3a31abe | [] | no_license | taesung153/Trip | 02d596cf17f922a00779b7d39c6b3779cb3adff9 | 86afadaaadf82d61844da2e3f5de833c6e4b3547 | refs/heads/master | 2021-01-19T19:32:06.472715 | 2017-03-03T00:40:19 | 2017-03-03T00:40:19 | 83,726,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from django.shortcuts import render, redirect
from .models import User
from django.contrib import messages
# Create your views here.
def index(request):
context = { 'users': User.objects.all() }
return render(request, 'login/index.html', context)
def register(request):
errors = User.objects.register(reque... | [
"taesung153@gmail.com"
] | taesung153@gmail.com |
ea24601647a7ad8f2d10fbe155ced1700832ca6a | d4f05d51568bfda9fb964deba92d9fd599a3dcde | /mail/mail_test.py | a073e2c45489ae0e1f5b3c596b033651216d92ec | [] | no_license | Fullmoon8507/PythonPracticeProject | 44beba7ce783e5e22429516d39ee96adc1ead785 | 57454099ad67bfe4431ee997fada640fde6ccecc | refs/heads/master | 2020-04-16T23:29:58.907552 | 2017-05-06T07:27:35 | 2017-05-06T07:27:35 | 53,178,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from util_mail import util_mail
if __name__ == "__main__":
utilMail = util_mail(
"fullmoon8507@gmail.com",
"fullmoon_8507@yahoo.co.jp",
"fullmoon8507@gmail.com",
"rg020316",
"こんにちはPython",
"このメールはPythonで送信しています。");
utilMail.do... | [
"fullmoon_8507@yahoo.co.jp"
] | fullmoon_8507@yahoo.co.jp |
fb7e622200fd9cef912fed2cf95e864086762be9 | 709bb0132577c55f49e6d32094cd452481e89df4 | /clutch/schema/user/method/session/accessor.py | 301c0dd0039871442d0551317f878a3da8b6825b | [
"MIT"
] | permissive | mhadam/clutch | f2f321aad3a6eb023b0a31580a50d16735fdea4b | dd860a09233c17db0264b9918a51913aff79713b | refs/heads/master | 2023-08-10T10:34:32.335562 | 2023-04-27T16:35:25 | 2023-04-27T16:35:25 | 120,688,975 | 39 | 12 | MIT | 2023-07-25T15:10:22 | 2018-02-08T00:20:42 | Python | UTF-8 | Python | false | false | 1,293 | py | from clutch.compat import Literal
SessionAccessorField = Literal[
"alt_speed_down",
"alt_speed_enabled",
"alt_speed_time_begin",
"alt_speed_time_enabled",
"alt_speed_time_end",
"alt_speed_time_day",
"alt_speed_up",
"blocklist_url",
"blocklist_size",
"blocklist_enabled",
"ca... | [
"michael@hadam.us"
] | michael@hadam.us |
d7a386fdf0f9e56885ee6cc2cc7238b74853be3c | eddc65f295a95468057a7925187e929219c86600 | /Sniffer.py | 5e9beed824c7841b0527389c0029f795cea1eb69 | [] | no_license | Jleons/Redes-Sniffer_De_Red | 25fc3662331778e9fb54e33a1cc651e3ab9fe089 | 4eb2fc0a1f886415f2bde0af20491741126154fe | refs/heads/master | 2023-04-06T01:41:08.790059 | 2021-04-16T08:12:41 | 2021-04-16T08:12:41 | 358,458,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,548 | py | import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import sys
def mainMenu():
print('''\nSelecciona una opción:
1. Analizar paquetes de un protocolo en específico
2. Analizar todos los paquetes de cualquier protocolo
3. Salir
''')
return
def inpu... | [
"jleons@unal.edu.co"
] | jleons@unal.edu.co |
f90b779aaeb4a0f740f90851bed216a780a3a8b6 | 0ca28fc69bea0cfd1dffe83ecbfe048d19e85cc6 | /day24/code2.py | 090272b67dbb5798f15ebd281c20d371e9db1ece | [] | no_license | analogpixel/adventOfCode2018 | 071addfe7df2eb3d9b3697b9f83d9fa814e792e7 | 6ff62d29f6e7ecc3e226648d1c684be83c70ca2b | refs/heads/master | 2020-04-09T09:01:40.816897 | 2019-01-30T20:11:09 | 2019-01-30T20:11:09 | 160,218,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | #!/usr/bin/env python
import re
from recordclass import recordclass
from pprint import pprint
import math
import copy
import sys
MyStruct = recordclass('system', 'id systemType weakTo immuneTo units hitPoints attack attackType init effectivePower selected defendingGroup')
#inputFile = "test_input.txt"
inputFile = "... | [
"matt.poepping@gmail.com"
] | matt.poepping@gmail.com |
29698b6ee3f0f2bc514d49a51f4ba18b9bf90270 | 9fb4062a2f033f2991fa0fdbba4b8429398af8ba | /torchvision_finetuning_instance_segmentation.py | dbf4275369d04944c1176c42f5c7359e10380e02 | [] | no_license | rainvestige/pytorch_tutorials | aa49811f6ef332aa2f8ef85414772858e4fe6bac | 39955248b1996463a371c5d072f6835240ab65fd | refs/heads/master | 2021-01-04T07:55:16.393416 | 2020-06-02T00:22:48 | 2020-06-02T00:22:48 | 240,455,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,380 | py | # coding=utf-8
from PIL import Image
#Image.open('./PennFudanPed/PNGImages/FudanPed00001.png')
#mask = Image.open('./PennFudanPed/PedMasks/FudanPed00001_mask.png')
#mask.putpalette([
# 0, 0, 0, # black background
# 255, 0, 0, # index 1 is red
# 255, 255, 0, # index 2 is yellow
# 255, 153, 0, # index 3 is or... | [
"xinyuloveslife@163.com"
] | xinyuloveslife@163.com |
fa5013869da7ee2cf36278088780b65e225cc14b | a32909d969b4dee1e094cde9b21c7c7fd6b45fe0 | /ICP1/Source code/Stringreverse.py | 46a04a123f2ae884e3cc771d3398a9858b670f8a | [] | no_license | lavanyagadde/python | 125091be68e3d833ec405f85ba98586ba1e53572 | 48ba9d0ce03a0ac5af5285bee74451ada49037e7 | refs/heads/master | 2022-11-19T14:22:53.604073 | 2020-07-24T01:20:17 | 2020-07-24T01:20:17 | 271,065,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | # Reversing the string
s_string = list(input("Enter the string: "))
if len(s_string) > 2:
s = s_string[2:]
s_reverse = s[::-1]
print(''.join(s_reverse))
else:
print("Please Enter string with more than 2 characters: ") | [
"lavanyagadde217@gmail.com"
] | lavanyagadde217@gmail.com |
260a45792ee7211d44a74feaf1017b0f72930bab | 135013cb08b9086f986bab8338362abf4357fc3e | /health/staff/migrations/0002_auto_20170709_1821.py | 5e5c44bd8744e0fa79a28cae733b68fdd37561df | [] | no_license | TakoJ/lineus | 2c49d775e23fb3b31fb3e3d33c7a4b88ad563618 | 67556674b27d6eb9d1babaa73c42160375c21de4 | refs/heads/master | 2021-01-21T14:33:29.231675 | 2017-08-12T04:16:28 | 2017-08-12T04:16:28 | 95,301,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-09 09:21
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('staff', '0001_initial'),
]
operations = [
migrations.AlterF... | [
"hgy3047@gmail.com"
] | hgy3047@gmail.com |
68348b95d32dfe9f75d2681b1d6dbd33e8cbd353 | 9ed8d6f3a5d41e243f5d85e40cce5b32ebdee7fa | /Scripts/createfontdatachunk.py | 1efa429a4cd7e03568f26427e9c095f0ac7d6061 | [] | no_license | rajathithan/Django | db5f032328d06ffe317ccbb68de822b655f97cb0 | 4197df9e29e29c4125adf90ef65031b3d198c214 | refs/heads/master | 2022-11-18T16:10:00.758258 | 2018-01-28T16:59:31 | 2018-01-28T16:59:31 | 98,081,019 | 0 | 1 | null | 2022-11-17T20:49:55 | 2017-07-23T07:11:50 | Python | UTF-8 | Python | false | false | 561 | py | #!d:\django\gadoth\scripts\python.exe
from __future__ import print_function
import base64
import os
import sys
if __name__ == "__main__":
# create font data chunk for embedding
font = "Tests/images/courB08"
print(" f._load_pilfont_data(")
print(" # %s" % os.path.basename(font))
print(" ... | [
"rajathithan@gmail.com"
] | rajathithan@gmail.com |
c7ca06a1ce06e698fd5191626c20cb1e917c5897 | 65690ec10d27a4a5932c4458dcc338ff490332cc | /classscraper.py | d84e4f31dca1b70d6d56a5e80218c7f25ceaba7a | [] | no_license | brendot20/website- | 5cde8dbefc4ca01e93a2f06c9552cb61273a3da4 | 0e41c9a43950ed900ff5f2b60e66a07aa38826f0 | refs/heads/master | 2020-07-02T05:27:22.370537 | 2016-11-21T09:58:28 | 2016-11-21T09:58:28 | 74,323,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | ##################################### Method 1
from bs4 import BeautifulSoup
import mechanize
import cookielib
import html2text
# Browser
br = mechanize.Browser()
# Cookie Jar
cj = cookielib.LWPCookieJar()
br.set_cookiejar(cj)
# Browser options
br.set_handle_equiv(True)
br.set_handle_gzip(True)
br.set_handle_redirec... | [
"noreply@github.com"
] | noreply@github.com |
7780abb233c29b38b5ca1b09bbb21e3f2edb9b4f | 1c9056bd985480f0ca4233a555b45a4af9c73cb5 | /component_parts/views.py | 6df443179d35e9629ed672424766b0bd0c98fa7a | [] | no_license | FuccGG/BuildPc_v1.2 | 1164bdb53c34bfa9742ebffeb6512adaa0c8a166 | c3c9b85f2833033075bf3df1a761fc9c44983cec | refs/heads/master | 2021-05-23T13:51:09.859656 | 2020-05-07T08:07:57 | 2020-05-07T08:07:57 | 253,321,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | from random import randint
from django.shortcuts import render, redirect
from component_parts import functions_1
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from . import models
from .forms import CaseForm
def index(request):
return render(request, 'component_parts/startpage/startp... | [
"alextyu1993@gmail.com"
] | alextyu1993@gmail.com |
97abd6073393b94dc47f196ac3e347c564fe79da | 21bddedbff7ad90fa1604fcb61b851161ae7133a | /model_graph_rnn.py | 645fc0eb392056e508d0ea66148cc41bc9323919 | [] | no_license | wuguobiao/text_classification | b1625972165db31479ebc804e923ed5b047167f3 | 415e30bb88c85a30354fd97ca4fbd7ebd7a926cc | refs/heads/master | 2020-05-30T20:22:00.910437 | 2019-05-09T15:21:40 | 2019-05-09T15:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 25 15:33:42 2018
@author: limingfan
"""
import tensorflow as tf
# from zoo_layers import rnn_layer
from zoo_layers import gru_layer as rnn_layer
from zoo_layers import att_pool_layer
class ModelGraph():
@staticmethod
def build_placeholder(settings):
... | [
"li_m_f@163.com"
] | li_m_f@163.com |
6b4a557642ab3467432b417471c925ba888edc86 | ad742137035fbadaa5d205ec3144db685be12b72 | /tracker/migrations/0003_auto_20170928_0942.py | 5abe6d8b297a11cc4797e14ad3a3aa90d5dc37aa | [] | no_license | kirakirakira/game-saves | 082a48faf8794ba161c6bbea6f5dbd395b5f09ea | be0f228f4b6ddb53c95d28ef2ebee1d6251456d8 | refs/heads/master | 2021-08-14T22:47:23.836442 | 2017-11-16T22:51:10 | 2017-11-16T22:51:10 | 104,927,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-28 13:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tracker', '0002_auto_20170928_0940'),
]
operations = [
migrations.AlterFiel... | [
"kira.hartlage@gmail.com"
] | kira.hartlage@gmail.com |
c5d90ac5caf10f631f312dbb6d133c8e922e3634 | 1cacd866b16cef08a0f369ef0e8caba816291a22 | /quick_draw/models/simple_cnn/train.py | 3726e2c09c459833d120e333ef6dd2199d81d31c | [] | no_license | apls777/kaggle-quickdraw | e0b9882b30e23711d9fd46699bacdb63afd2673c | 982e0af783fc419c04bd12623757b76505bc7491 | refs/heads/master | 2020-04-10T13:39:56.474975 | 2018-12-09T15:59:51 | 2018-12-09T15:59:51 | 161,056,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from quick_draw.models.estimator import train
if __name__ == '__main__':
train('simple_cnn')
| [
"apls777@gmail.com"
] | apls777@gmail.com |
e74a7f17a1f66d420fd2ded7b814e718433aa36a | a0c10f7e4bd5bed78915722cf1540d01ea05e3d0 | /coreapp/models.py | 726b73d5b1c76f2f11a6e7b2f4eb2b1a462d08d1 | [] | no_license | jod35/MyMDB | 54b4f162124350902eb8811aa313181f68085715 | df3bde5753356963ad653a721897a5a04e571ed1 | refs/heads/master | 2020-12-12T23:36:32.363098 | 2020-01-16T08:14:26 | 2020-01-16T08:14:26 | 234,258,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.db import models
class Movie(models.Model):
NOT_RATED=0
RATED_G=1
RATED_PG=2
RATED_R=3
RATINGS=(
(NOT_RATED,'NR - Not Rated'),
(RATED_G,'G - General Audience'),
(RATED_PG,'PG - Parental Guidance'),
(NOT_RATED,'R - Restricted'),
)
title=mode... | [
"jodestrevin@gmail.com"
] | jodestrevin@gmail.com |
105ba05769505def0a0890fdd141d38e9bef3bce | 74041f038035fe0b783f91ec03ba98713c16782d | /oop1.py | 9c15117e053c9f7a848125ef32c34a218878c32b | [] | no_license | karmacharya20/basicpython | c33ea9cfac5c5002f508dce2cb135252158d420d | 20d79106d4d311c769508458e990df297695190a | refs/heads/master | 2020-04-13T11:13:27.666520 | 2018-12-28T10:54:01 | 2018-12-28T10:54:01 | 163,167,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from __future__ import print_function
import math
def circumference(radius):
return math.pi * 2 * radius
circles = [["First circle",4.4,2],["Second circle",3.7,3],["Third circle",8.4,4]]
circles[0][2] = circumference(circles[1][1])
print (circles[0][2])
| [
"Om"
] | Om |
1db895ee7ea77add9902f06c0660938e1f0b9d07 | 33e8c324cb3cc4d2948cef31271628538538ac68 | /hexiaowen/week8/find_sum.py | 4b7544b7ebdbe2b629aecabec97669784480c2c9 | [] | no_license | magedu-pythons/python-14 | 4e6cc0450778751156ade54a2ba1c6e28e4b479d | 68c587d1298bd50db1dd48758becf185056434ea | refs/heads/master | 2021-06-20T09:55:46.116872 | 2019-07-17T02:31:41 | 2019-07-17T02:31:41 | 139,226,922 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | def find_sum(num:int):
lst = [1,3,5,7,9,11]
lst.sort() #给列表排序
count = []
x =0
if lst[0] > num: #判断是否小于最小值
print('输入数值过小')
return
for i in range(len(lst)):
if i > num:
break
sub = num - lst[i] ... | [
"786551691@qq.com"
] | 786551691@qq.com |
3096612b178c48aea5edad963883627b0a4ac55f | 3a73374a708037368f587ba6379ec2fd0b48851a | /recursion/power_of_numbers.py | c5fe9b7890a7feede9b5accd98208ca96b5934a5 | [] | no_license | swatia-code/data_structure_and_algorithm | 948d3b39d649d5bd6e3aabaefedbcd09098906d2 | 7219ff9c5a5b0c565b3f17095775d902a92e3d83 | refs/heads/master | 2023-03-30T08:49:48.350623 | 2021-04-02T08:44:30 | 2021-04-02T08:44:30 | 254,819,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | """
PROBLEM STATEMENT
-----------------
Given a number and its reverse. Find that number raised to the power of its own reverse.
Note: As answers can be very large, print the result modulo 109 + 7.
Example 1:
Input:
N = 2
Output: 4
Explanation: The reverse of 2 is 2
and after raising power of 2 by 2
we get 4 which g... | [
"swatia@juniper.net"
] | swatia@juniper.net |
744be02e341f51e80523b0b13f4c5e8ad92ba439 | 953a31cc7e22d853c05840af5791066e759f1762 | /config.py | 29ef7b542c0c002b6507eb7d26e95c8977ddbf72 | [] | no_license | osnipezzini/tempo_clima | 028fc2dd7a870bc0be3dcd379403a19147396ad4 | d78e7f36df2cd68c1606bc2d6944b10302aa54f5 | refs/heads/master | 2023-02-26T05:33:37.598774 | 2021-02-08T05:13:35 | 2021-02-08T05:13:35 | 336,126,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | API_KEY = ''
LANG = 'pt_br'
CONNECTION_STRING = 'postgresql://postgres@localhost:5432/climatempo'
LITERAL_SPACE = "%20"
| [
"osni.pezzini@gmail.com"
] | osni.pezzini@gmail.com |
6dd18905cfda9e7744fbd346162d19b5c89f6784 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Drive/Revisions/List.py | f6fef1063fba4694f614cfb1c7d5cdbaa004f587 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# List
# Lists a file's revisions.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
19ef327ab52f567fde2c502bce5617e517410c6b | e117398a9911593cbe90f2abd3071e7f44ede875 | /project/4leaf_base/models/base/__init__.py | 08d41462321ca68b0cb7736935a46dcf11731e70 | [] | no_license | chienlieu2017/hms | 82f06a326953d2de0ceac5b8c2be826729839d7c | 1a919237df0f822e2805a12873bb75d0b3ba20b1 | refs/heads/master | 2021-01-19T11:05:21.240598 | 2017-06-21T14:56:52 | 2017-06-21T14:56:52 | 87,926,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2009-2017 4Leaf Team
#
##############################################################################
import ir_module_category
import res_groups
import res_users
| [
"ubizgit@gmail.com"
] | ubizgit@gmail.com |
6e8475479c952f63f5df9e0abbb64b645aa53211 | 6429b8e52ad121d7de30df2a0acb9a91d82ad8a6 | /parser/modules/biaffine.py | 214198e22217c4c73a475733cb785f2e0bcee02d | [] | no_license | livc/cross-crfae | 853c646e925057755c287dc12823ceb0a2b9c668 | 017b044191e1382ce11d6ab88752cbc33c4afa11 | refs/heads/main | 2023-04-14T17:15:33.649243 | 2021-04-19T02:54:18 | 2021-04-19T02:54:18 | 298,212,568 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
class Biaffine(nn.Module):
def __init__(self, n_in, n_out=1, bias_x=True, bias_y=True, biaffine=True):
super(Biaffine, self).__init__()
self.n_in = n_in
self.n_out = n_out
self.bias_x = bias_x
self.bias_y = bias_... | [
"arminli@icloud.com"
] | arminli@icloud.com |
b399d961e08be6169b8b2e6a97c176bb6ed631b3 | 04a8d4baf9a7e296714c417ba67e3648cc220d30 | /theano_new_backend_debug.py | 8958661b64b925e90e7ef575086ffb797f219634 | [] | no_license | david-leon/theano_newbackend_debug | 5df72359503ba31e2080ff60b1ab94a3e8aa8801 | 2dd3e48667492c273d395aff160d1c35ff5bf858 | refs/heads/master | 2021-06-19T06:30:47.363087 | 2017-07-14T01:55:10 | 2017-07-14T01:55:10 | 97,179,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | # coding:utf-8
# <Descriptions>
# Created : mm, dd, yyyy
# Revised : mm, dd, yyyy
# All rights reserved
#------------------------------------------------------------------------------------------------
__author__ = 'dawei.leng'
import os
os.environ['THEANO_FLAGS'] = "floatX=float32, optimizer=fast_run, warn_float... | [
"daweileng@live.com"
] | daweileng@live.com |
617eae9d017a0dde1bc11bf0d36e206e4179edec | 37c3f094c0c1a813c15614ad78a2c27031554aff | /mongo/schema.py | e03fbb4b17ec938c648bba4b76665d0aac6984b8 | [] | no_license | syeutyu/FlaskStudy | 845c1768ed9b4574c723e7bffc83ec25c198b396 | f0e88a1d8c00263ab60c95a9e5ad1549919f7196 | refs/heads/master | 2021-05-15T09:27:09.176709 | 2017-12-28T01:51:38 | 2017-12-28T01:51:38 | 108,136,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from mongo import *
class mongoengine(Document):
test_num = StringField(default='test') | [
"syeuty@naver.com"
] | syeuty@naver.com |
b26100dace418b6797467b19bf0107b9cc0bac9a | cd824959e52b6bc1523ec7f0074da66302500dda | /mysite/polls/urls.py | 37de3263a319624228ef96750ee8cb34a3937b42 | [] | no_license | Dethekar/django-app-09Aug21 | 303b3cf4862f28f546135feace38c044b011224d | 8bf8af11509fdff682f0edfa78b70cc848b4dae7 | refs/heads/main | 2023-07-12T06:04:55.302144 | 2021-08-18T23:18:48 | 2021-08-18T23:18:48 | 397,757,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
#path('specifics/<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/res... | [
"dethekar@gmail.com"
] | dethekar@gmail.com |
bfdc3ec9493959af16954405e58b38aed40ec4d6 | 2263f3e016d43d6d4cec9b833c184b532f71bf9f | /tests/test_modeling_clip.py | dc3c495248250fdd17fba34304cd7b6a117a1847 | [
"Apache-2.0"
] | permissive | prajjwal1/transformers | f01ca8bae79eb27bb0fc775c062104b3dc3726c4 | ecc16f19ddd0a180df4d38f2cd2f98cfe0944f65 | refs/heads/master | 2023-08-25T13:02:31.207085 | 2021-10-22T00:28:13 | 2021-10-22T00:28:13 | 261,527,791 | 0 | 0 | Apache-2.0 | 2020-05-05T16:37:45 | 2020-05-05T16:37:44 | null | UTF-8 | Python | false | false | 22,599 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | noreply@github.com |
45eac4d1c2df7bf3a9209e1069a1784de9c04124 | 0668404b877fb65d61f1131ea7529dda622286c8 | /Python/Pycharm/hello_world/numbers_rows.py | 390a928eb3c3466445435a9188bb6e7f57554967 | [] | no_license | nikhiljsk/Programming | 1137128f787ccd5eef45f8aff91128f740195592 | 8226c2320809d252eb3a49149044c0cd217391b4 | refs/heads/master | 2020-05-03T21:50:56.230712 | 2020-02-28T10:18:22 | 2020-02-28T10:18:22 | 178,832,071 | 0 | 0 | null | 2020-02-20T12:33:26 | 2019-04-01T09:41:38 | HTML | UTF-8 | Python | false | false | 107 | py | def fun(k):
for n in range(22, 81):
print(n)
n = n-1
print(n)
fun(2)
| [
"nikhiljs@in.ibm.com"
] | nikhiljs@in.ibm.com |
a2e0768bf3e6b95683d269005218b49e77a120d6 | 668666cffdb0c0dbfed9af931b39b2e3fcb697d1 | /docs/conf.py | a73869d0b19f9ba1fd032d71bd8a9c9ddbddc619 | [
"MIT"
] | permissive | doclements/pycsw | ee8de72c5a3ed2f7f08b0d5e3f0e482904a43a35 | 07ab48e02152b517e1ec5d1952a2aadfae9db191 | refs/heads/master | 2020-12-25T12:40:41.340666 | 2012-07-01T16:27:31 | 2012-07-01T16:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,733 | py | # -*- coding: utf-8 -*-
#
# pycsw documentation build configuration file, created by
# sphinx-quickstart on Fri Oct 15 08:43:28 2010.
#
# 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
# autogenerated file.
#
# All c... | [
"tomkralidis@hotmail.com"
] | tomkralidis@hotmail.com |
db7457cd26fbe5c9ffb22531ccfaad448e099c2d | 04616bb4a4d48f798a6602f100414da951d48703 | /lesson02/hw02_easy.py | 3d41b23f2b7390909c0d56f10efc308dc25c17b7 | [] | no_license | DaharGon/gb_python | f69e5ce236c96adba685c5613be45208a723ffb9 | 5f8a7beef6cbeec2968fa95424afbdd904ba38da | refs/heads/master | 2020-04-05T13:04:45.044731 | 2017-07-14T11:54:16 | 2017-07-14T11:54:16 | 95,059,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | # Задача-1:
# Дан список фруктов. Напишите программу, выводящую фрукты в виде нумерованного списка выровненного по правой сторне
# Пример:
# Дано: ["яблоко", "банан", "киви", "арбуз"]
# Вывод:
# 1. яблоко
# 2. банан
# 3. киви
# 4. арбуз
print('Задача 1')
fruts = ["яблоко", "банан", "киви", "арбуз", 'какой то неведо... | [
"arriec@rambler.ru"
] | arriec@rambler.ru |
584bb157f8790abbff70360669ddc017a71d9780 | ed4f795d78313bc971fd2ee040acf11c0f650992 | /app/app.py | 042a809038e8727f35e8c1a9558e54c88a05a559 | [] | no_license | DDani/saturdays.ai-stress | 6c1cdb7b8a7f63143622030399dd213354872d28 | e55e7712489946cb2d5b6c5ead72aa810aa450ec | refs/heads/master | 2022-11-19T06:04:15.209882 | 2020-07-20T15:22:09 | 2020-07-20T15:22:09 | 277,926,955 | 2 | 0 | null | 2020-07-20T15:22:10 | 2020-07-07T21:35:29 | Jupyter Notebook | UTF-8 | Python | false | false | 4,329 | py | import streamlit as st
import matplotlib.pyplot as plt
import pickle
import pandas as pd
import numpy as np
import warnings
warnings.filterwarnings('ignore')
# Just some variables for the selector
industry_types = {
"ACCOMMODATION_AND_FOOT_SERVICES": "Accommodation and food services",
"ARTS_ENTERTAINMENT_REC... | [
"danicasro"
] | danicasro |
11a5192f826a3433cb797d7b967b3c6d8d82e958 | de8b4e41cc9d99e65d7108cc72cf3caaa8e9ba1f | /odoofile/addons/bn_newplaza/models/__init__.py | 0465a4325d480e3e8d0f76291f10a49b12deb17f | [] | no_license | gongfranksh/bn_2dfire | 92b52f97ad6492d97fcf1b16a83c64f46725535b | 8f23b94290c7a3f38e1f1ec2d3494519b6f90fe3 | refs/heads/master | 2021-07-16T16:34:20.349232 | 2020-07-07T02:55:39 | 2020-07-07T02:55:39 | 185,004,116 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
from . import bn_base_info
from . import bn_rpt_floor_plan
from . import bn_rpt_contract_file | [
"gongfranksh@qq.com"
] | gongfranksh@qq.com |
83da2eb48fc4f70b49d991f038affc52072506f4 | ae43e960655360c8dab634e71d0e6c312444d318 | /couchpotato/core/providers/torrent/tehconnection/__init__.py | b0e7ed1f2434eac48184ea82ee11716f815fc8f8 | [] | no_license | Kopoe2003/CouchPotatoTehConnectionPlugin | 01389e3443966af5193fdbdcb82c33c7097e7e95 | 7a8fe56e396d3cf49e6ad388ab1c86b064cfcedc | refs/heads/master | 2021-01-10T18:49:36.423705 | 2014-05-09T13:03:42 | 2014-05-09T13:03:42 | 16,190,308 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | from .main import TehConnection
def start():
return TehConnection()
config = [{
'name': 'tehconnection',
'groups': [
{
'tab': 'searcher',
'list': 'torrent_providers',
'name': 'TehConnection',
'description': 'See <a href="https://tehconnection.eu/">Te... | [
"kopoe2003@yahoo.com"
] | kopoe2003@yahoo.com |
e7307c01fb73f0dc06ff9cb0fb22d3fcf56a5e38 | b7c5d272d9ef62b943fc81a90df6c64503bb920a | /day26/nato_alphabet_project.py | 63759576caf0f79733b16bf1cf04c4e854447111 | [] | no_license | valentine909/PythonProBootcamp | 26cb4e1b0d5ea756abbd4d68de7a386025580153 | e684f0b900d893dbf0b75a589ce15f7579924601 | refs/heads/master | 2023-07-09T18:46:15.138856 | 2021-08-11T12:00:08 | 2021-08-11T12:00:08 | 362,832,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import pandas as pds
def process_cvs(name: str) -> dict:
alphabet = pds.read_csv(name)
return {row.letter: row.code for (idx, row) in alphabet.iterrows()}
def take_input_word():
name = input("Enter a word: ")
while not name.isalpha():
print('Sorry, only letters in the alphabet please')
... | [
"valentine.nazarov@gmail.com"
] | valentine.nazarov@gmail.com |
9b2a6dbff048c2ed1a5e67377e17c16e63ba873e | 33fff408af6a7fa23bbb288a792d07fb8631c588 | /tests/pkg_resources_weirdness.py | e771c7d25c33f3d395f9d3c2a2eae46325c7ae40 | [
"Apache-2.0"
] | permissive | climacell/rules_pyz | 5d997c986ed053baf8e7a4d2ec8809154e3462ed | 38996632d86366b75cc88611aa394745a06d08d5 | refs/heads/master | 2023-06-10T18:41:20.550363 | 2019-10-29T23:48:26 | 2019-10-29T23:48:26 | 133,696,404 | 0 | 1 | Apache-2.0 | 2023-05-28T20:15:43 | 2018-05-16T16:43:29 | Python | UTF-8 | Python | false | false | 598 | py | # IMPORT ORDER IS CRITICAL
import sys
sys.path.insert(0, '.')
print 'orig', sys.path
orig_path = list(sys.path)
# google.cloud.datastore uses pkg_resources which messes with sys.path
# if the directory containing the zipped tools is on sys.path
import google.cloud.datastore
print 'after', sys.path
after_path = list(... | [
"evan.jones@bluecore.com"
] | evan.jones@bluecore.com |
8cd22cb9ec8da0bbe53df131fe72b824eb78bdc4 | 5201f0b791cfd18c5f74643258cf90119063dfee | /10-2.py | 2c899b9ab55b9eb9e75eac827c000b2c97c1e5c4 | [] | no_license | SherryYeh/Python-HW | 3c104305c28e2a8f24055abca1c9db64175f8d06 | 8eb990628c71789f8d3fca550eb1051b4ed7a5b0 | refs/heads/master | 2023-02-25T17:40:46.227613 | 2021-02-05T07:14:36 | 2021-02-05T07:14:36 | 336,193,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | def compare(s1,s2,s3):
t=cost=0
if(s1<183):
s1=183
if(s2<383):
s2=383
if(s3<983):
s3=983
if(s1<s2 and s1<s3):
t=s1
cost=183
elif(s2<s3 and s2<s1):
t=s2
cost=383
elif(s3<s2 and s3<s1):
t=s3
cost=983
print("%d" %t)
... | [
"Sherry2000.yeh@gmail.com"
] | Sherry2000.yeh@gmail.com |
7c8955dd96349037a377af6eb7e4235022a080ef | 9565944a40229e3cc3b1681ba34781edbefc81cb | /Intermediate Algorithms/TruthTeller_FindersKeepers.py | 2ce0875d31446f811534cd6989cb22074f6fb243 | [] | no_license | AllifAmey/Algorithms | a5d7109d3dfe617a6e6dca4202da3425dea64e56 | 7fb7455abf376153815ddc5eafdffc6fbea542bd | refs/heads/master | 2021-06-18T20:46:58.756553 | 2017-06-14T17:36:11 | 2017-06-14T17:36:11 | 94,356,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #Started. 23/3/17.
#No honour among thieves.
#Look through an array
print("Give me your list")
User_list = input()
print("Are any of the numbers mentioned in the list even?")
def TruthTeller(num):
Truth_list = []
Final_list = []
for item in list(range(num.count(" ")+1)):
if " " not in num:... | [
"noreply@github.com"
] | noreply@github.com |
34789906fdcd412187d4169895f0e6ad0c4645ff | 72bc5502cd7c991075646cae98769fefd5702d50 | /protogen/stalk_proto/reporter_pb2.pyi | 5cb08a5094c9073f54472f057820b49a9f894ac1 | [
"MIT"
] | permissive | peake100/stalkbroker-py | c9a337dcfe088b807b8fffc182e45b31486e2635 | 95bed6e6d89dc00b183b71d5d3fce7908c554ed9 | refs/heads/master | 2022-12-10T15:19:22.557382 | 2020-08-15T00:13:36 | 2020-08-15T00:13:36 | 256,074,008 | 0 | 0 | MIT | 2020-05-31T18:18:29 | 2020-04-16T01:03:23 | Python | UTF-8 | Python | false | false | 156 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.message import Message as google___protobuf___message___Message
| [
"b.peake@illuscio.com"
] | b.peake@illuscio.com |
62f235dbe13dbf7f088201154a31580a599dc7b6 | b951222928d56fe753e7f592ba89431c0c521ec0 | /research/object_detection/Object_detection_image.py | 9b1ba182d06b7f366aaea90f243fb46788b7c7d5 | [
"Apache-2.0"
] | permissive | hidekazu300/object_detection | 328cf1ef9cb19dcd93f20c442b99395aa155da9c | 3c199d5e01ecf806718675da39112cf0326f3853 | refs/heads/master | 2022-11-09T21:23:36.400754 | 2019-06-23T14:18:49 | 2019-06-23T14:18:49 | 193,357,391 | 0 | 1 | Apache-2.0 | 2022-10-30T14:22:33 | 2019-06-23T14:23:51 | Python | UTF-8 | Python | false | false | 4,372 | py | ######## Image Object Detection Using Tensorflow-trained Classifier #########
#
# Author: Evan Juras
# Date: 1/15/18
# Description:
# This program uses a TensorFlow-trained classifier to perform object detection.
# It loads the classifier uses it to perform object detection on an image.
# It draws boxes and scores aro... | [
"hidekazu300@gmail.com"
] | hidekazu300@gmail.com |
05dbd8351ea8cad373edf9babc9a5afb5869a81d | 1840eff4a604161d56fba2747520686a5a008301 | /src/apps/inventario/migrations/0027_auto_20181008_1535.py | 8b44cf40ac0cb21871a37072526723234ccc2119 | [] | no_license | jinchuika/app-suni | f9291fd2e5ecc9915178141039da19444769cb85 | 0e37786d7173abe820fd10b094ffcc2db9593a9c | refs/heads/master | 2023-08-24T21:52:04.490613 | 2023-08-14T21:32:22 | 2023-08-14T21:32:22 | 68,239,483 | 7 | 6 | null | 2023-08-14T21:32:24 | 2016-09-14T20:10:09 | Python | UTF-8 | Python | false | false | 534 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-10-08 21:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventario', '0026_auto_20181008_1122'),
]
operations = [
migrations.Alter... | [
"epatzan@github.com"
] | epatzan@github.com |
f532825d78f2d1ddc399969da9196c85c5e4350d | 9c4f1ff4ada9085c9fc3396cb2d8c67060bd7f0f | /plots/plot_ts.py | 1c661984d9d2fda97a2ddac71ef0eb7a097b59e1 | [
"MIT"
] | permissive | cherishing99/PyGdalSAR | 309d6158d91513361035432004a4f2913f6d1788 | 5de7147c892304ea7561438b4960fccd4be831e0 | refs/heads/master | 2020-08-27T02:11:19.148514 | 2019-10-03T10:11:19 | 2019-10-03T10:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,325 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
############################################
#
# PyGdalSAR: An InSAR post-processing package
# written in Python-Gdal
#
############################################
# Author : Simon DAOUT (Oxford)
############################################
"""\
plot_ts.py
------... | [
"simondaout@gmail.com"
] | simondaout@gmail.com |
554668452b145d08664a0af3abe9b7eb07ea2a08 | 96e1b0247f36cbc5a4073071b20ad6b61321b807 | /flask_factory/factory.py | 652be1826541fb7c165a69207e452d007803e080 | [
"BSD-3-Clause"
] | permissive | Kroisse/flask-factory | 24783160db73bb0e58719a4c0344c877595413b5 | 02da8e3f6ded6e988853599b694b45e2ffaa9b5e | refs/heads/master | 2016-09-10T18:33:55.744539 | 2014-10-13T14:43:16 | 2014-10-13T14:43:16 | 21,735,329 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # -*- coding: utf-8 -*-
"""flask_factory.factory
~~~~~~~~~~~~~~~~~~~~~
"""
from flask import Flask, current_app
from werkzeug.datastructures import ImmutableDict
from werkzeug.local import LocalProxy
from .initializer import Initializer, Action, DeferredAction
def _lookup_ext_instances():
namespace = current_ap... | [
"kroisse@gmail.com"
] | kroisse@gmail.com |
ca3fcadd5a19cbdd6f38ead785bf1259a39d271a | 46927e86865a3b682b1fe6bfd36e0fd496781738 | /fittness.py | 60328a700f0f41018afc5de6ef44f0cd9293d876 | [] | no_license | Tanishq1001/Fitness-app | e830b18b37d31cbb194a224e90a746bb8ed5fc16 | dd3d5452678ec420e275afee4531d2b9eb417410 | refs/heads/master | 2023-03-07T05:46:37.901740 | 2021-02-17T14:01:38 | 2021-02-17T14:01:38 | 335,923,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
class MyWindow(QMainWindow):
def __init__(self):
super(MyWindow, self).__init__()
self.setGeometry(200, 200, 300, 300)
self.setWindowTitle('Fitness')
self.initUI()
def initUI(self):
... | [
"tanishqarnav@outlook.com"
] | tanishqarnav@outlook.com |
f3f9bb9bd325477e87aefa8dbb33971d041f5d35 | 4d212e49c34781dca45caf8354d3ef4483335003 | /Resources/Randy/Chlorine/fds_complex_stoichiometry.py | fa2543b8212a5e378446072a8d520c69ce60fef2 | [] | no_license | TristanHehnen/FDSChemReac | 083c1b3bb06dbda5d391dba962c18886050a1645 | ef34aa977c4bba3fa010c7de0cb18087de02ca1a | refs/heads/master | 2021-04-29T12:35:09.827039 | 2018-09-19T10:51:45 | 2018-09-19T10:51:45 | 121,731,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | #!/usr/bin/python
# Original author: McDermott
# 08-02-2017
# Adjusted by: Hehnen
# 08-18-2018
# fds_complex_stoichiometry.py
from __future__ import division # make floating point division default as in
# Matlab, e.g., 1/2=0.5
import math
import numpy as np
import scipy.special as sp
import matplotlib.pyplot as plt
f... | [
"tristan.hehnen@cern.ch"
] | tristan.hehnen@cern.ch |
4bd5eff51ae56b8aebef0a0652b27602a0ea7c6a | 12d48054240ace4a7c718e9274a5d17a0f9254af | /tests/test_client.py | a900a53ac7697c3c181aff57c0786bef3bf4775d | [
"MIT"
] | permissive | cathrynsymons/flasky-1 | b7835fb5980e3d9b6a65e6bbda354b035e1c136a | 51e1f5b02be95fb2ca0b771526fe73f6e2d42968 | refs/heads/master | 2023-08-29T07:49:35.943143 | 2021-10-23T12:05:22 | 2021-10-23T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | import re
import unittest
from app import create_app, db
from app.models import User, Role
class FlaskClientTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_context.push()
db.create_all()
... | [
"cathryn@cathrynsymons.com"
] | cathryn@cathrynsymons.com |
6557b4ad2373d14ba3d8ab0ed709e25a1b24e9c1 | e309516495825212ca7dbecaac426c9357116554 | /dpipe/medim/registration.py | 5cbd78675984aaf79e7c044043380077e5c7d213 | [
"MIT"
] | permissive | samokhinv/deep_pipe | 547731e174a6f08be71a4c59ccef59c46960d8c8 | 9461b02f5f32c3e9f24490619ebccf417979cffc | refs/heads/master | 2022-11-30T03:58:29.955375 | 2020-08-12T08:05:13 | 2020-08-12T08:05:13 | 286,951,953 | 0 | 0 | MIT | 2020-08-12T07:53:04 | 2020-08-12T07:53:03 | null | UTF-8 | Python | false | false | 1,487 | py | from os.path import join as jp
import tempfile
import numpy as np
import nibabel as nib
from nipype.interfaces.ants import RegistrationSynQuick
def register_images(moving: np.ndarray, fixed: np.ndarray, transform_type: str = 'a', n_threads: int = 1) -> np.ndarray:
"""
Apply RegistrationSynQuick to the input ... | [
"maxs987@gmail.com"
] | maxs987@gmail.com |
817e4719f2e50c505d16e03f92e3949f372168dd | b62074652809075f09ef3e7b7edf785a3f1b21f4 | /python2ard.py | 6354d9cc0fdd7eff77ec9c5a883b61a4ebebe264 | [] | no_license | fmea0/R1 | 77e0e00760ccb96a198813c649220d3df38cc035 | 3f6da1887a1b03ebe3af1c3c15c67922dbe43faf | refs/heads/master | 2020-12-28T10:39:55.403190 | 2020-02-04T20:12:17 | 2020-02-04T20:12:17 | 238,293,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from transform import four_point_transform
import seleccionador as tp
import cv2
import numpy as np
import argparse
import time
import math
import urllib.request
import serial, time
arduino = serial.Serial("COM8", 9600)#cambiar el com al correcto
tp.init(0.7,"C:/Users/sarig/Desktop/frozen_inference_graph.pb")#usa el ... | [
"noreply@github.com"
] | noreply@github.com |
65403c10ee623808d9a5259a3338084f7e7d5b12 | 279a89952efdec1b46ad23e91027196462277886 | /cloud/helpers.py | 323125d005bfb852736b645ead8d9babeb4c6947 | [
"MIT"
] | permissive | bezineb5/PanonoUploader | 7f005ff23b99331fec9eef1240d947d5705cd63c | 01b89c8636cb9b1c004d603ca34411ebbd0f897d | refs/heads/master | 2020-03-17T01:24:40.075584 | 2018-11-15T01:11:29 | 2018-11-15T01:20:01 | 133,151,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def username(login_info):
if login_info:
user = login_info.get("user")
if user:
data = user.get("data")
if data:
return data.get("username")
return None
| [
""
] | |
a2583f46b04d19753aa51de978c5ee4c9376bf68 | 18d79eb4020a188ed4888ef1e31d3788c7310c75 | /Users/admin/views.py | 81420d963f7957e882bbe83b95fac063ad1b7822 | [] | no_license | LuizFernandoCirigliano/MashupMap | f0938234ac27b006c62e17305bcbaac47eee1d87 | 6fd5c0008bc67ec09c80434cb8ad07b95e067487 | refs/heads/master | 2021-01-19T19:47:23.185198 | 2017-04-22T01:22:56 | 2017-04-22T01:22:56 | 52,470,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | import flask_admin as admin
import flask_login as login
from flask import redirect, url_for, request
from flask_admin import expose
from flask_admin.contrib.sqla import ModelView as OriginalModelView
from flask_admin.form import SecureForm
class ModelView(OriginalModelView):
column_display_pk = True
form_base... | [
"lf.villela@gmail.com"
] | lf.villela@gmail.com |
2e9259c527ecbe0d90f16bbdc15996fc00b17274 | 585379d00064393c1ad391f4cd456c8ec75452c9 | /practise.py | 2b7d022810389f613a51e12572108e270d835fc3 | [] | no_license | krish5056/practise- | 3c181a7a3f5e5b72e35b4ca52278ade37e61c5a4 | 266d81356c281d58938fa82bfd22d805e5ebfd88 | refs/heads/master | 2020-04-24T20:11:23.885305 | 2019-02-24T10:56:23 | 2019-02-24T10:56:23 | 172,235,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | def add(x,y):
return x+y
def sub(a,b):
return a-b
add(10,20)
sub(20,30) | [
"gkrishnamurthy627@gmail.com"
] | gkrishnamurthy627@gmail.com |
1f7154dd1ecd25675b63ec9c863c145945649d93 | 0581988cad7e0ea62a638d551548e409af1e5dc1 | /20200523/TCP_Chat_Room_Windows_UI/Server/ui_server.py | 29b4f4beb74d4ae71acc85653073cbc794f2590f | [] | no_license | Aimee888/python-20200513 | 7c1dff7d7f0fdea08e12735efeb2e889fedeee10 | 578c388be5582dc7f1556f95168adf0399b7ea1f | refs/heads/master | 2023-01-06T10:21:35.014780 | 2020-11-03T01:07:04 | 2020-11-03T01:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_server.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Main... | [
"961745931@qq.com"
] | 961745931@qq.com |
322d5e489beb5d227dd5233036bb18093f1d2902 | c96ffce4aee1cb732ba93944ebf698b90602c57d | /src/test/make_data.py | 54dd3477fc13258e6e3d5fdc105b564c4f83a5f7 | [] | no_license | dnephin/Find-Similar-Documents | ae319419e8c02fdbcd2f285a14cc8c3317e9a3da | 229f7e22780376a4d2997003cb2e3cc250de8dd8 | refs/heads/master | 2021-01-01T17:48:10.730662 | 2011-05-11T05:03:47 | 2011-05-11T05:03:47 | 1,716,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,853 | py | # -*- coding: utf8 -*-
"""
Generate some bogus city data.
"""
import csv
import random
import sys
city = ['Abbotsford', 'Armstrong', 'Burnaby', 'Campbell River', 'Castlegar', 'Chilliwack', 'Colwood', 'Coquitlam', 'Courtenay', 'Cranbrook', 'Dawson Creek', 'Duncan', 'Enderby', 'Fernie', 'Fort St. John', 'Grand Forks', ... | [
"daniel@gmail.com"
] | daniel@gmail.com |
e1cedddb8f866c02e28f7e5233193e60a4968095 | b7841b697f37c097a52134298b6cb5e2515c4a52 | /melvin_thomas@ieee.org/gh-profile-link-generator/gh-profile-link-generator.py | 6a64c84e83bef76e99a0dbddbb4b1e5bab07faf9 | [] | no_license | melvinthomasdev/15-days-of-code | 561a9d05f2dfa7d24e6a0cf6a4650b0fbf0f13fc | 3d87a8479d7ac3360c10b2fde7f5925025cd89dd | refs/heads/master | 2022-07-07T13:25:09.981410 | 2020-05-10T14:44:42 | 2020-05-10T14:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | name=input("Enter file name: ")
fn='./'+str(name)+'.xlsx'
import xlrd
book=xlrd.open_workbook(fn)
sheet=book.sheet_by_index(0)
f=open('links.txt','w+')
i=1
j=int(input("Column Number which has the GitHub IDs:"))
while True:
try:
cell=sheet.cell(i,j-1)
cell=str(cell)
if 'github.com' in cell:
cell=cell.replace... | [
"57299818+Melvin-Thomas-Dev@users.noreply.github.com"
] | 57299818+Melvin-Thomas-Dev@users.noreply.github.com |
0cce5cd7fa23b3e6ee31892be317fe7e92f042ed | 33ec778311faef50182e48cd1d23389b0cb6f40a | /TEXT TO SPEECH/tts.py | fa61424d7a1626cc6ca5d7d761d57cad41c12b85 | [] | no_license | aayush2508/TEXT-TO-SPEECH | 063f17be335470437b2dbc66fde0391cbba1d050 | 92cfdcccb4bdbbfdd3f52307528f992168bfd8b7 | refs/heads/main | 2023-05-04T10:18:35.504817 | 2021-05-25T05:58:19 | 2021-05-25T05:58:19 | 370,580,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import tkinter as tk
import pyttsx3
engine = pyttsx3.init()
class Widget():
def __init__(self):
self.root = tk.Tk()
self.root.title('TTS')
self.root.resizable(0,0)
self.root.configure(background="blue")
self.label = tk.Label(self.root,bg="pink",fg="brown",font="Ar... | [
"noreply@github.com"
] | noreply@github.com |
988751cd616e8344006aa9b0d81861a9967d3aa8 | 31323a4f117efee15b2d05e9e39178c5ffee8096 | /01c330d12e751276ca/scratch.py | 32c4a792dd70a14859b9745e639f380737dec2bb | [] | no_license | JonPenny/samples | 6475e4205a61455c96db5577b4ee89346a2cb2a7 | e6fbfee6d6e15a026b0ece4f56ef06ddd26f185b | refs/heads/master | 2022-07-03T16:59:10.339736 | 2020-05-14T21:54:10 | 2020-05-14T21:54:10 | 264,006,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | import datetime
import numpy as np
import pandas as pd
def futures_rollover_weights(start_date, expiry_dates, contracts, rollover_days=5):
"""This constructs a pandas DataFrame that contains weights (between 0.0 and 1.0)
of contract positions to hold in order to carry out a rollover of rollover_days
prior... | [
"jonpenny@Jons-MacBook-Pro.local"
] | jonpenny@Jons-MacBook-Pro.local |
7951b499b65677e48fd1f73f9eb7ca4a6279aee6 | 13d3a44447f6a7d8b0d61c2fb445fa6aa76c2f95 | /stackdio/core/notifications/registry.py | 5c214313868f3ac2dd0bd6d0bd3121e7bda326b4 | [
"Apache-2.0"
] | permissive | stackdio/stackdio | 6ba4ad6c2ef10a323cbd955e6d6d5bd7917c17c2 | 84be621705031d147e104369399b872d5093ef64 | refs/heads/master | 2021-04-09T16:36:38.220557 | 2018-08-13T18:25:29 | 2018-08-13T18:25:29 | 17,679,603 | 9 | 11 | Apache-2.0 | 2020-03-19T17:21:45 | 2014-03-12T19:02:06 | Python | UTF-8 | Python | false | false | 4,871 | py | # -*- coding: utf-8 -*-
# Copyright 2017, Digital Reasoning
#
# 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... | [
"clark.perkins@digitalreasoning.com"
] | clark.perkins@digitalreasoning.com |
28bc9eda33602366e2088a7ee1b022061c1eda51 | b0df8d6303dc08eb2fc9dba84d29fe802f8399a5 | /scrapers/agency_dataaccessor.py | d59f12532fd519d9b8eb7b0f5ea73197c19754ff | [
"MIT"
] | permissive | dhavalparmar/GovLens | 35d271362fbd40df0cd2a607b9e93c838147afd3 | 1968f388aa24681946e120ae43528276ede51769 | refs/heads/master | 2020-09-30T08:24:49.122894 | 2019-12-04T02:36:53 | 2019-12-04T02:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | import requests, os
from requests.auth import HTTPBasicAuth
import json, datetime
class AgencyDataAccessor:
def __init__(self, token, agency_info):
if os.environ.get('govlens_api', None) is None:
self.base_url = "http://govlens.us-east-2.elasticbeanstalk.com/api/agencies/"
else:
... | [
"bkumar@ezesoft.com"
] | bkumar@ezesoft.com |
913ee000093137c77773fadd3ef4df2f7e4e4e62 | 42e0cd54fd6249d1a0c532cb8326ee62df4dc20e | /tracmigrate/tests/__init__.py | 5d2bdb97423f6bdab55dfbdf367f432a6dba3afd | [] | no_license | jun66j5/tracmigrateplugin | e3647082597321ebe4415661964cbf3146369dc1 | f69eca1257d10b6db1baa415979db6d026306c14 | refs/heads/master | 2021-01-17T09:36:11.538555 | 2016-03-21T11:12:39 | 2016-03-21T11:12:39 | 16,668,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # -*- coding: utf-8 -*-
import unittest
from tracmigrate.tests import admin
def suite():
suite = unittest.TestSuite()
suite.addTest(admin.suite())
return suite
if __name__ == '__main__':
unittest.main(defaultTest='suite')
| [
"jun66j5@7322e99d-02ea-0310-aa39-e9a107903beb"
] | jun66j5@7322e99d-02ea-0310-aa39-e9a107903beb |
6ff8f443778aed9542341c107724cf759d0887d1 | 63db3d61afa68328a5021c72bc5788863255ad92 | /app/tests/utils.py | d1434396e4d3b3d5c270ae4e4a0fc53a9a7160fd | [
"MIT"
] | permissive | madussault/FlaskyPress | f79999e3f8c1a1a820453f547c797e51f7b366b2 | 677bfbb3473a239c08d9e120e959d3e31c456964 | refs/heads/master | 2022-12-12T08:15:07.675667 | 2021-02-05T18:40:47 | 2021-02-05T18:40:47 | 249,275,387 | 0 | 0 | MIT | 2021-03-29T22:28:03 | 2020-03-22T21:26:19 | Python | UTF-8 | Python | false | false | 7,573 | py | """Contains helper functions for our tests.
"""
from app import db
from app.models import (Post, User, ContentWidget, CategoriesControls, Social,
SearchBarControls, WidgetOrder, Category)
from app.categories.utils import set_categories
def dummy_post(title='Dummy post', content="Dummy Content... | [
"admin@madussault.dev"
] | admin@madussault.dev |
2a3d17fc1cb4d177d5271f7354724a0f1fa023a9 | ce77d9d63d4a6e85578e9bdba18643adde88f911 | /python/977A.py | cb63af9044da7e3b20658641b711a6761aad094b | [] | no_license | NeverQuitYourDayDream/cfslns | 3bcbbc28e1c583503dc1695df9627ee395a55716 | 58744248caff7c0735c347b01a815db35deca4fd | refs/heads/main | 2023-04-03T15:59:19.336196 | 2021-03-29T15:55:26 | 2021-03-29T15:55:26 | 336,565,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # 977A Wrong Subtraction
# Completed in 62 ms 0 kb
n, k = map(int, input().split())
while k > 0:
if n % 10 != 0:
n = n - 1
else:
n = n // 10
k = k - 1
print(n)
| [
"noreply@github.com"
] | noreply@github.com |
d66667bfab31eac9294051e7d1502616c949a504 | 0cf8dec11aeea87e3ec3b30666b8da434131091b | /Healthy programmer/health_prog.py | cd177aab3fccc8dc0706ef190718bb060249934f | [] | no_license | deepanshug4/Healthy_programmer_alarm | 91896147b6a192cb6267b39d9ce7aa24a7af47f2 | bf42e36d716f574828f6522306260fcfae4c41eb | refs/heads/main | 2022-12-22T04:55:17.078227 | 2020-10-02T07:00:10 | 2020-10-02T07:00:10 | 300,517,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,550 | py | #Import Statements
from pygame import mixer
from math import floor as f
import datetime
import time as t
name = input("Enter your Name").capitalize()
print(f"{name}, Welcome to Healthy Programmer!")
print("We will keep reminding you to do your basic tasks again and again.")
def play(sound):
"""
... | [
"noreply@github.com"
] | noreply@github.com |
3714e802f9b550e5cf890605b5b6484ea29ee6ef | 2fd32040076245a18c7de203dde182d01085247d | /DataStructures/Deque.py | 1ef763460ec787232df29e9fce72b56f7acd029c | [] | no_license | Zoxas/Test | d6c0e60915cef1be99b5571ffa2f9c4476c94a25 | 2098f42ccd16f2562fb70d669f92668a0790243a | refs/heads/master | 2021-01-17T14:25:44.751314 | 2019-08-01T07:51:23 | 2019-08-01T07:51:23 | 49,070,520 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | # -*- coding: utf-8 -*-
"""
Deque() creates a new deque that is empty. It needs no parameters and returns an empty deque.
addFront(item) adds a new item to the front of the deque. It needs the item and returns nothing.
addRear(item) adds a new item to the rear of the deque. It needs the item and returns nothing.
rem... | [
"tgbv41@gmil.com"
] | tgbv41@gmil.com |
62592c6a2d303a08090d60d4498e6818c5f63a89 | 742d33beff208d10a219c04430d483c32943fc8c | /PythonModules/chapter01/matplotlibTest.py | de6037ebd01f90dfb6da655705f7f99d40e0f9d4 | [] | no_license | whitelowrie/MechineLearning | a00457ecb736c0941b839dd1966f05f990c8b63e | 92562262e3204108e5e906667444bc53a7a02d1c | refs/heads/master | 2020-05-20T18:24:13.335599 | 2017-03-14T13:40:38 | 2017-03-14T13:40:38 | 84,502,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #-*-coding:utf-8-*-
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
#-*-coding:utf-8-*-
x = np.linspace(0,10,1000)
y = np.sin(x)
z= np.cos(x ** 2)
#创建一个绘图对象,如果不创建就会自动创建
# plt.figure(figsize=(8,4))
# #传入x和y
# plt.plot(x,y,label="$sin(x)$",color="red",linewidth=2)
# plt.plot(x,z,"b--",label... | [
"jiutuhongnu@163.com"
] | jiutuhongnu@163.com |
3c21fd685a10be0c0910b3b61a7f8beb96e36b5d | ac0ca8de12e1b78f75de9cc1f4adf1d6bc45377a | /app/dao/config/GConfigDao.py | a014b0fae1f81cadc0c9d0bcc9247417fb669304 | [
"Apache-2.0"
] | permissive | xiaogui16/pity | ea72718b1f07e68ad523af4c4eee7bd258553b2d | 490d0ac32a212c17cb03e52db5c3759cca9be282 | refs/heads/main | 2023-07-07T06:07:23.617404 | 2021-08-07T12:44:49 | 2021-08-07T12:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | from datetime import datetime
from sqlalchemy import desc
from app.models import Session, update_model
from app.models.gconfig import GConfig
from app.models.schema.gconfig import GConfigForm
from app.utils.logger import Log
class GConfigDao(object):
log = Log("GConfigDao")
@staticmethod
def insert_gco... | [
"wuranxu@126.com"
] | wuranxu@126.com |
40ffa7ed38814911e35e8f7ac9579dbcdefc8813 | 42a35343cbd9a34cecbc4f94eb926408bd7dc10a | /Hypothesis Testing 01 - Straddle.py | 69faf338e82d8f535194a8dd9f8eb0d68512d122 | [] | no_license | rahulreddymaram/Entirety-Codes | 130b42131675c9252525e5e9d247ad230a451198 | 767d4c9a91aa68c2eb26fd26179535c8ff9c0f57 | refs/heads/main | 2023-06-20T13:37:03.798157 | 2021-07-09T05:41:54 | 2021-07-09T05:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,920 | py | #import libraries
import pandas as pd
import datetime
import numpy as np
import matplotlib.pyplot as plt
from glob import glob
from dateutil.relativedelta import relativedelta, TH
#fetch all the files from the diretory
path = pd.DataFrame(glob('/nfo_2019-20_data/*'),columns=['location'])
path['data_date'] = path['loca... | [
"noreply@github.com"
] | noreply@github.com |
84db0181e20181efd215f949334ac894d10b60d7 | b3854f84e3761c5a31347e6dbd4a5aba1ca625c3 | /parv/token.py | 1ecab8d0deddf6d89ab6ac85f3f46e50e98a4909 | [
"MIT"
] | permissive | GeeTransit/parv | 7c67cfa537f8260644582750fb2ce3a59141f4cd | 98e6ae16465ed02ac7beb4b2bba349c6daa3ac53 | refs/heads/master | 2020-08-29T07:07:28.439766 | 2019-10-30T20:46:20 | 2019-10-30T20:46:20 | 217,962,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | # parv/token.py
#
# Token for use in Parser, Creator, and Visitor
# PEP 585 (Consistent with original program style)
from __future__ import annotations
# --- Token class to store CST ---
class Token:
"""
Simple token that holds a name and its children tokens.
"""
def __init__(self, name: str, *item... | [
"geetransit@gmail.com"
] | geetransit@gmail.com |
db6c1fcc7c2e9399cbd6deaa8ee2d112b0cb898c | 15afc6a3270d9b42cc84a788853ce46456be01f2 | /section_ii/project_b/example/example_15/mpl_squares.py | 45bc81e546238abb1e2d8a87e45e48bd12383f85 | [] | no_license | xieqing0428/python_helloworld | 161c90564638dc49e3a82a00607a762b36a39212 | e08f63616aabe609ff1ac53b8e0ab32eaf2a472b | refs/heads/master | 2020-04-16T11:01:37.918248 | 2019-02-14T07:19:09 | 2019-02-14T07:19:09 | 165,521,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding:utf-8 -*-
"""
@author: Alessa0
@file: example_15.py
@time: 2019-01-22 20:48
"""
import matplotlib.pyplot as plt
input_values = [1, 2, 3, 4, 5]
squares = [1, 4, 9, 16, 25]
plt.plot(input_values, squares, linewidth=5)
# 设置图表标题,并给坐标轴加上标签
plt.title("Square Numbers", fontsize=24)
plt.xlabel("Value", fontsi... | [
"849565690@qq.com"
] | 849565690@qq.com |
9456cc5b56eee40d4b5e6eae8d4d8f4ad7cdfe35 | e86c8d6c58a1e10c80f32ee1e1c795f8d2e3200e | /examples/sample.py | 19cab31360e694e3c25b1adee2a46c0293752b19 | [
"MIT"
] | permissive | akimach/tfgraphviz | 14532284c3e7ecd1e4bade391ec5955cfa2cec50 | e56a312f71b78e0ec7166c7f0ff84acb77d25766 | refs/heads/master | 2021-07-04T01:32:12.923008 | 2021-06-06T10:55:01 | 2021-06-06T10:55:01 | 82,122,043 | 52 | 15 | MIT | 2021-06-06T10:55:02 | 2017-02-16T00:43:50 | Python | UTF-8 | Python | false | false | 205 | py | #!/usr/bin/env python
import tensorflow as tf
import tfgraphviz as tfg
a = tf.constant(1, name="a")
b = tf.constant(2, name="b")
c = tf.add(a, b, name="add")
g = tfg.board(tf.get_default_graph())
g.view() | [
"kimura.akim.asa@gmail.com"
] | kimura.akim.asa@gmail.com |
64d2262538e35204ec52e784cd9fffe6542d9b9c | a844ccc676caaf75326acf33168d72e5c25c09a6 | /aoc2021/input_helpers.py | bb1c23105520a5163bc55c52cc3cd5e7e7b62784 | [] | no_license | rakitaj/daily-programmer | 65fc6f3e3fea153c5911eca40c3e90afd5fd341b | e226e63671116a2e0318816e92f04184b58f0f5e | refs/heads/master | 2023-05-15T04:44:03.961103 | 2021-12-24T00:52:35 | 2021-12-24T00:52:35 | 102,878,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from os.path import abspath, dirname
def puzzle_input_to_str(day: int, strip: bool = False) -> list[str]:
day_number = str(day).zfill(2)
dir_name = dirname(__file__)
file_path = abspath(f"{dir_name}/puzzleinput/day{day_number}.txt")
with open(file_path, encoding="utf8") as f:
lines = f.readlin... | [
"joshuarakita@gmail.com"
] | joshuarakita@gmail.com |
5ed36769bd3ccf0d644322e5073503071335e49f | f7c8fb8958956cfeac918a7ad7858756bea3d83d | /Solar radiation prediction using ANN ARIMA HYBRID/annarima.py | 9fcb4f0a8c4c34dd79f94cd531878a3bd753c883 | [] | no_license | aparajitverma/MACHINE-LEARNING | 4d2826a66aab6ef2f2aa00cae8123b04a153d6cf | e84b6a9e4df807126ee0c6bace92beceffd610c2 | refs/heads/master | 2022-12-04T02:20:51.983589 | 2020-08-24T15:27:23 | 2020-08-24T15:27:23 | 260,461,811 | 0 | 0 | null | 2020-05-01T17:10:56 | 2020-05-01T13:09:36 | null | UTF-8 | Python | false | false | 8,777 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 1 19:24:25 2019
@author: HYDRA
"""
import warnings
import itertools
import numpy as np
import matplotlib.pyplot as plt
warnings.filterwarnings("ignore")
plt.style.use('fivethirtyeight')
import pandas as pd
import statsmodels.api as sm
import matplotlib
mat... | [
"noreply@github.com"
] | noreply@github.com |
aea5fc9607f3f9b87efbf7cf19f4f67fee7529db | 09db6c4ff70cca176f2fbc667e66266a31fa440e | /apps/projects/admin.py | b3fd575fb9582b782634ff4b82e90089d68cf6a2 | [
"MIT"
] | permissive | myhumankit/mytimetracker | e99c006edb06d5b10ce908049ded5bb8d3ffa55c | b9bdf5af2e7f85758d43f37b36c10884f0412d43 | refs/heads/master | 2023-04-29T23:50:27.606367 | 2019-11-19T14:51:57 | 2019-11-19T14:51:57 | 209,867,791 | 0 | 0 | MIT | 2023-04-21T20:38:20 | 2019-09-20T19:37:41 | Python | UTF-8 | Python | false | false | 4,008 | py | from django.contrib import admin
from mptt.admin import DraggableMPTTAdmin
from simple_history.admin import SimpleHistoryAdmin
from projects.models import Location, Project, Activity, Leave, Resource, Capacity
class LocationAdmin(SimpleHistoryAdmin):
list_display = ("title", "comment", "id")
class LeaveAdmin(Si... | [
"julien@lebunetel.com"
] | julien@lebunetel.com |
0eab21dc7c490173cd227e20a09375e40c6b4349 | 988fc913d87c32b7bae5da2e0d6fdb3227bee1d3 | /media.py | 8d14942e4b81ec29440a8b7b9d45fe1ef0001558 | [] | no_license | vikas12396/MovieWebsite | f3b20729ff7f27db12b41107db18dd83e854def0 | 4f116f4060caf2b59437b30693c1690a02871b9d | refs/heads/master | 2021-06-18T04:50:17.468191 | 2017-06-04T18:50:58 | 2017-06-04T18:50:58 | 93,333,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import webbrowser
class Movie():
def __init__(self,movie_title,movie_storyline,poster_image,trailer_youtube):
self.title=movie_title
self.storyline=movie_storyline
self.poster_image_url=poster_image
self.trailer_youtube_url=trailer_youtube
def show_trailer(self):
webbrow... | [
"rpsvikash96@gmail.com"
] | rpsvikash96@gmail.com |
5a6684cf6336b6e04f42572ab7ed8ee4ec3751e1 | b4276ef90a4db14d8091a092292aeabe9a0d8eee | /state_scrapper/state_scrapper/spiders/state_spider_deep.py | f2f460279d11618aa4493303d6a0485da94a3ad9 | [
"CC0-1.0"
] | permissive | nikmend/state-scrapper | df78dfd17ab8bc9d96e24fe8eb8fdbba872b0728 | 39c902320ea97605857ef74789e578dbdb7ccfd0 | refs/heads/master | 2022-12-01T13:40:04.827422 | 2020-08-08T10:28:38 | 2020-08-08T10:28:38 | 280,551,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,403 | py | import json
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
# -*- coding: utf-8 -*-
import scrapy
from ..items import StateScrapperItem
from ..utilsMobicrol import reverseAddress, cleanContact
from unidecode import unidecode
from datetime import datetime
cla... | [
"nikmend_@hotmail.com"
] | nikmend_@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.