blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67eabf0ae2a7a48804060b2815b630e26deab170 | b0c811e00137129e725499c99ef7d4d0c7282a60 | /ictivity/wsgi.py | 409630f0d94274cb4477ac8a068bc7906fcd57cd | [] | no_license | mengcz13/Ictivity | 8a3b01e05bb41353dad70d5572b646e475861441 | 850b8ca477a456ee3edf51f7f2ede4d5841f3ff7 | refs/heads/master | 2021-01-21T15:04:46.460606 | 2016-06-24T15:00:40 | 2016-06-24T15:00:40 | 59,628,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ictivity project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"mengcz13@163.com"
] | mengcz13@163.com |
a8a973fe9ce85b93f99827d4cd97e42e85c8ddc4 | 455c79b1a536bdf17ab54bbe39d3215f05184d57 | /app/movies/utils.py | f0e01e6e5c52cbb7bdd750fda56ff96552f0765a | [] | no_license | shivamsingh14/movie-ticketing | b2f8eeffe1868648edb22ea95f897158fd905568 | 89f27dc280517bad171161805450280c10ab19ca | refs/heads/master | 2020-06-04T08:14:18.858185 | 2019-06-14T12:41:14 | 2019-06-14T12:41:14 | 191,940,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from app.movies.models import Auditorium
from app.movies.models import Slot
class FreeSlotUtil():
def get_free_slots(self, audi, start_date, end_date):
audi_available_slot = range(audi.opening_time, (audi.closing_time-2), 3)
audi_booked_slots = Slot.objects.filter(
audi=audi,
... | [
"shivamsingh14111997@gmail.com"
] | shivamsingh14111997@gmail.com |
fe616439df2cf983c744ea323919525c2e94cbb2 | 814fd0bea5bc063a4e34ebdd0a5597c9ff67532b | /chrome/common/extensions/docs/server2/refresh_tracker_test.py | f1f596f1afefe93317d8fa365571a158aa4abe97 | [
"BSD-3-Clause"
] | permissive | rzr/chromium-crosswalk | 1b22208ff556d69c009ad292bc17dca3fe15c493 | d391344809adf7b4f39764ac0e15c378169b805f | refs/heads/master | 2021-01-21T09:11:07.316526 | 2015-02-16T11:52:21 | 2015-02-16T11:52:21 | 38,887,985 | 0 | 0 | NOASSERTION | 2019-08-07T21:59:20 | 2015-07-10T15:35:50 | C++ | UTF-8 | Python | false | false | 1,941 | py | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from object_store_creator import ObjectStoreCreator
from refresh_tracker import RefreshTracker
class RefreshTrackerT... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4a2b53bd3b55146afd68cccc08de400d3c6b2a95 | d957aac7c4c73f0547c322bf7eae98b8ca57cf0e | /BaekJoon/BaekJoon_1152.py | ad635b521490363e520377ed8d2d60c68d928ba3 | [] | no_license | iamzero-j/PythonAlgorithm | babe7499cf5b8b80ce74b0b11075739a4d5ae00b | 3591d0645768c6af5ace3af36f71167b0053c713 | refs/heads/master | 2023-03-02T23:04:25.627784 | 2021-02-16T06:47:41 | 2021-02-16T06:47:41 | 276,972,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # ์ถ์ฒ : ๋ฐฑ์ค -> ๋ฌธ์์ด : 1152๋ฒ https://www.acmicpc.net/problem/1152
#๋จ์ด์ ๊ฐ์
#๊ณต๋ฐฑ์ด ์ฐ์์ ์ผ๋ก ์ฌ ์ ์์
#ins=input().split(" ") ์ฌ์ฉ์ ์๋ฌด๊ฒ๋ ์ ์น๊ณ ์ถ๋ ฅ ํ์์ ๋ 0 ์ด ์๋ 1์ด ๋์ด
ins=input().split()
print(len(ins))
| [
"noreply@github.com"
] | iamzero-j.noreply@github.com |
a8be7e35f1526e8eda93504378fb00923e9b8a2d | a0072256bee8821b3fe63dfca6a6574f864cc899 | /app/PyBotEngine/agreeabl.py | 0183c7f5525963c539342c869a0713163165e1c6 | [] | no_license | sinsinpub/sin2gae | 8a81e2c0e7f101119207f58394dee908deb2e2c2 | 2a7f2be0e73611289520127bf888ab8237047f9c | refs/heads/master | 2020-06-01T07:29:05.003964 | 2010-12-11T23:05:49 | 2010-12-11T23:05:49 | 36,711,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,534 | py | # This Python file uses the following encoding: utf-8
"""
This is agreeabl, a friendly little twitter bot
"""
import os
import urllib
import urllib2
import random
import datetime
import logging
import re
import types
import feedparser
import wsgiref.handlers
from dateutil.parser import parse
from google.appengine.ex... | [
"sinsinpub@251f673c-c833-11de-8672-e51b9359e43c"
] | sinsinpub@251f673c-c833-11de-8672-e51b9359e43c |
cf231172191fbe06dde2ae86a1570a03ae34181f | e75846f5d88c4c7ea4417735e354a970f882d7e6 | /backend/app.py | d014f61a7ec2307a3ba485650800f7b831cc1fa9 | [] | no_license | somprasongd-forks/Pybott-Covid-Selftracking | 5370b8ffc7e192da73c62be4e29ba940e71bb7a7 | 7ffd97f4a9aaf5fa1099c29fe906f4a12c025c2b | refs/heads/master | 2022-06-27T15:26:48.679136 | 2020-05-09T11:30:47 | 2020-05-09T11:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,135 | py | import random
import time
from flask import Flask, abort, request
from flask_cors import CORS
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import *
from BasicFunction.CaseLocationApi import get_location_reccommend_data
from BasicFunction.COVID... | [
"Puttipong.lims@gmail.com"
] | Puttipong.lims@gmail.com |
70d7f3dbd44a17cd86c110457bf873c417e8deca | 8f19107b3fb4dae9114f6aec3ed448665742d87d | /labs/Topic04-flow/lab04.04-student.py | 8981447e10afe7e1547747d8961999ad9167a308 | [] | no_license | Munster2020/HDIP_CSDA | a5e7f8f3fd3f3d4b92a2c9a32915d8152af87de6 | ab21b21849e4efa0a26144fcbe877f6fb6e17a2f | refs/heads/master | 2020-12-14T13:24:14.961945 | 2020-03-25T21:09:13 | 2020-03-25T21:09:13 | 234,757,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # A Program that reads in students
# until the user enters a blank
# and then prints them all out again
students = []
firstname = input("enter firstname (blank to quit): ").strip()
while firstname != "":
student = {}
student["firstname"] = firstname
lastname = input("enter lastname: ").strip()
student... | [
"g00387820@gmit.ie"
] | g00387820@gmit.ie |
1f7122e1b41a9df89a492a703ee6bd51647f5f8a | 5861ec37c27a8b5e62733ca13a5632047935b40e | /pollsystem/polls/migrations/0001_initial.py | fd0a40295a0fabb044c4967e53784ca3183d6625 | [] | no_license | radhikagupta6/YourPoll | 27e64d5e8ca14a8cad68bf8e57b1842ba7339346 | 4f895fc0dacca190eaafc4174cd379f94246c764 | refs/heads/master | 2022-12-03T04:33:44.903447 | 2020-08-17T11:27:35 | 2020-08-17T11:27:35 | 273,569,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Generated by Django 3.0.3 on 2020-06-19 17:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"gupta.radhika61997@gmail.com"
] | gupta.radhika61997@gmail.com |
a9041f6205f5ad6290737d163bd636f00dd384b6 | bf5942872d653398dc1a91919153609654c7fb7f | /apps/resource/tests/test_user.py | 898f924dc4a4d7f5d7f07a0713e3175d2cc3c5fb | [] | no_license | henriquecf/sites_api_django | 4293c24da202281a6c965fc677d399b90aeef31f | f09ca1d8517de2e2e123b8714a9cfd2b46372810 | refs/heads/master | 2021-05-27T21:40:24.068292 | 2014-06-09T17:57:55 | 2014-06-09T17:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,622 | py | # -*- coding: utf-8 -*-
import random
from django.core.urlresolvers import reverse
from django.contrib.auth.models import Permission
from django.test import LiveServerTestCase
from rest_framework.test import APILiveServerTestCase
from rest_framework import status
from apps.resource.models import Site, ContribSite, Auth... | [
"elo.henrique@gmail.com"
] | elo.henrique@gmail.com |
b9a387605d577d71f54a61961bb4e49480104471 | 0180b1a8e19c0a02e7c00ebe1a58e17347ad1996 | /BCR2000/consts.py | a1a23805ec9ecae2ff31a2bf1a642c416c9ebe69 | [] | no_license | cce/buttons | e486af364c6032b4be75ab9de26f42b8d882c5b0 | 7d4936c91df99f4c6e08f7e347de64361c75e652 | refs/heads/master | 2021-01-17T06:56:55.859306 | 2014-12-22T05:03:00 | 2015-11-25T03:42:28 | 46,657,841 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | # Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/BCR2000/consts.py
""" The following consts should be substituted with the Sys Ex messages for requesting
a controller's ID response and that response to allow for automatic lookup"""
ID_REQUEST = 0
ID_RESP = 0
GENERIC... | [
"cce@appneta.com"
] | cce@appneta.com |
b2b78ff4ca6a2e23d745096515ed1a5158c35be8 | 309cfe85fcf96531fe7ea745db462b6fe1f837be | /River3/python/RiverUtils.py | 0b3a680d44ec7b58039b230a93e2400825f68d5d | [] | no_license | NWU-NISL-BugDetection/river | 60c6cabc9f3fbf51b427c2af9fe997a384f0f8e4 | d33042536b66fa0fa68c451e0c22504fc35d81b5 | refs/heads/master | 2023-07-24T06:01:40.082441 | 2021-09-01T06:24:35 | 2021-09-01T06:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,663 | py | from typing import List, Dict
import heapq
import numpy as np
from triton import TritonContext
import logging
import argparse
from triton import TritonContext, ARCH, Instruction, MemoryAccess, CPUSIZE, MODE
# Put the last bytes as fake sentinel inputs to promote some usages detection outside buffer
SENTINEL_SIZE = 4
... | [
"ciprian.paduraru2009@gmail.com"
] | ciprian.paduraru2009@gmail.com |
2d05ab4221727d108dcd0eff6b2f0fdfe47b2821 | 57449ec58fd3919d3db1434cf34def46fb17d723 | /modules/button.py | 7edc8de5bff8126316676a7f8cd326b315a09f0c | [] | no_license | sanetro/clicker | ad0ebc8a21219f107c177e6332bf842f4d6ad8ef | 3cc193990d785099e5c8321c139851d959b59f95 | refs/heads/master | 2023-06-24T09:55:43.367197 | 2021-02-28T14:55:25 | 2021-02-28T14:55:25 | 341,620,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import pygame
pygame.init()
class BTN():
def __init__(self, color, x, y, width, height, text=''):
self.color = color
self.x = x
self.y = y
self.width = width
self.height = height
self.text = text
def draw(self,win,outline=None):
#Call this method to dr... | [
"sanetro26@gmail.com"
] | sanetro26@gmail.com |
a6f6eba4196833521a55e8c5bcb36c53233d461b | 470334fb1ca97ee1da3889517e4f38bec66944bb | /username/username/wsgi.py | 5910739352c7649419f57ad514d387de2002bc41 | [] | no_license | Bhavyareddy/username3 | 40363db4e4c3e522898224a893d9285a0102842a | b6e9df81c7082d982f531760a76bfbe59af9b58b | refs/heads/master | 2020-05-30T11:53:47.641907 | 2016-08-10T21:55:59 | 2016-08-10T21:55:59 | 65,456,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for username project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"bhavya@ideathrusts.com"
] | bhavya@ideathrusts.com |
71746fea62c81bca85cdda17b939d1bf146287de | a0501ee2c6ea376beb4e1e5e9e656f7bebb7d8c5 | /problema16.py | db816e9cdfb1024fae2653f366033ad8a7dcbafe | [] | no_license | jose-brenis-lanegra/T09_Brenis.Niquen | 0e988c1ae8c89fe7f9cf92010297193e376fc233 | 21f292120244b33496d71dcefeb40c6c8a5b4490 | refs/heads/master | 2020-11-25T15:51:01.886824 | 2019-12-18T03:37:34 | 2019-12-18T03:37:34 | 228,745,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import libreria
import os
#hallar la volumen de un tetraedro
a=int(os.sys.argv[1])
volumen=libreria.volumen_teraedro(a)
print("el volumen del tetraedro es:", volumen)
| [
"noreply@github.com"
] | jose-brenis-lanegra.noreply@github.com |
0255e46bd31fd1ecc2393fdf7322e84db39abf47 | 97e60d0ca572d0dc3fc80f8719cd57a707ab6069 | /bias_zebra_print/stock.py | dd94d374c932338a87ab830754b76fb7b1fe5b94 | [] | no_license | josepato/bias_trunk_v6 | 0c7c86493c88f015c049a139360478cabec7f698 | b6ab6fc2ff3dc832f26effdba421bcc76d5cabac | refs/heads/master | 2020-06-12T14:18:31.101513 | 2016-12-15T22:55:54 | 2016-12-15T22:55:54 | 75,803,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"josepato@hotmail.com"
] | josepato@hotmail.com |
08ae130b1a21fc57296695f30b8ad957650fbdce | 48dd623ed7a73db4a341846c8e3db005eabcd9a9 | /mssqltest.py | ac93d1902f1ba343f0e8cbe7d5b0c2ce0ae03219 | [] | no_license | HarishPvhb/DMS | 25530e0d2bc18a384eebdcda27206fc5a684665a | e9684a16d733e9d5b631127af32b9bdc0674077c | refs/heads/master | 2022-12-28T22:59:03.623671 | 2020-10-14T15:03:09 | 2020-10-14T15:03:09 | 303,298,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import pyodbc
import binascii
import struct
host = 'td1a4dmcslanqnr.c9mc5tzceqtj.us-west-2.rds.amazonaws.com'
port = '1433'
user = 'root'
password = 'baffle123'
database = 'MSSQL_LargeData'
schema = 'New'
table = 'LargeData'
column = 'col_time'
query = "select {} from {}.{}.{};".format(column, databa... | [
"harish.babu@coriolis.co.in"
] | harish.babu@coriolis.co.in |
b563672c1f0906584832778d726b6ba3cac18c7f | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_microsoft_defender/fn_microsoft_defender/util/customize.py | bb2e546adca2b9b9f81794d806d0518c8a1f2dd2 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 6,691 | py | # -*- coding: utf-8 -*-
"""Generate the Resilient customizations required for fn_microsoft_defender"""
import base64
import os
import io
try:
from resilient import ImportDefinition
except ImportError:
# Support Apps running on resilient-circuits < v35.0.195
from resilient_circuits.util import ImportDefini... | [
"travis@example.org"
] | travis@example.org |
e64dc24c7f2e713d932e22c3bdbe113dfcac051e | 0c93c0d2c9b674e26b3ea2431ea8350581354970 | /minishift/font.py | 6224ca0dcbaa5af454fb172052df67ed0d010bc0 | [
"BSD-3-Clause"
] | permissive | henrybell/minishift-python | e7af8ffa6201ae4694281cf05137d81076215ede | 12a351d0260be522087eaecc4b20dd239f7ed9a2 | refs/heads/master | 2020-03-22T07:54:43.800853 | 2015-11-16T16:37:46 | 2015-11-16T16:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,573 | py | """glcdfont, courtesy Adafruit.
Software License Agreement (BSD License)
Copyright (c) 2012 Adafruit Industries. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must ... | [
"arachnid@notdot.net"
] | arachnid@notdot.net |
c269ecdcc14dbc4334e23ae671f11b1ed330d2e2 | 2eb5d59b6e9a28e06b8124b6f51c85217629a24f | /pybo/views/base_views.py | 06fca3e60a83941babf9a41197478667f23d62c9 | [] | no_license | lwjworld88/pybo | e44a38e8126c8d8a2494288f7bab8a13037ca46f | fbfd9d5a46fdea6ae9c6094e14799b1b7c3da048 | refs/heads/master | 2023-03-08T23:42:42.816755 | 2021-02-21T23:38:14 | 2021-02-21T23:38:14 | 341,356,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | from django.core.paginator import Paginator
from django.db.models import Q, Count
from django.shortcuts import render, get_object_or_404
from ..models import Question
def index(request):
"""
pybo ๋ชฉ๋ก ์ถ๋ ฅ
"""
# ์
๋ ฅ ์ธ์
page = request.GET.get('page', '1') # ํ์ด์ง ์ฒ๋ฆฌ. page ํ๋ผ๋ฏธํฐ๊ฐ ์๋ URL์ ์ํด ๊ธฐ๋ณธ๊ฐ 1 (e.g. loc... | [
"lwjworld88@naver.com"
] | lwjworld88@naver.com |
f926af277ef295431c9bbba87a470f29effed838 | eb8953a78be45c953bb30fd3ac9a4cb6b68a23b8 | /Week_01/remove-duplicates-from-sorted-array.py | bd33741ffabab7541fa27cce6c8601661691b4ad | [] | no_license | good-time/algorithm012 | 37bd620fd9d2b484c7c72f030d7732ea8b29f4a4 | ef03f220f3590a4c33f2ea8db91b69170f6d7f90 | refs/heads/master | 2022-12-18T18:22:48.580273 | 2020-09-27T04:36:51 | 2020-09-27T04:36:51 | 279,063,821 | 0 | 0 | null | 2020-07-12T12:52:12 | 2020-07-12T12:52:11 | null | UTF-8 | Python | false | false | 271 | py | class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if len(nums) == 0: return 0
i = 0
for j in range(1, len(nums)):
if nums[i] != nums[j]:
i += 1
nums[i] = nums[j]
return i+1
| [
"1421787775@qq.com"
] | 1421787775@qq.com |
12b35321e4a6f3f056becf5b21460437b8743274 | ccdf3dffdc390b774ac3e6ba81c16dc48bc9a5fb | /notebooks/basic_functions.py | 8a3b826197585c65de81174ab78d232d36898224 | [] | no_license | CCSB-DFCI/HuRI_paper | 90a69521e41d2a8dad9987895930ecd0ce6504b6 | 16c57919f4e0c3d1a78edf90c105ed42d3022f8f | refs/heads/master | 2022-12-15T19:58:33.625633 | 2020-09-14T17:07:06 | 2020-09-14T17:07:06 | 226,145,775 | 25 | 8 | null | 2022-08-23T18:07:00 | 2019-12-05T16:38:19 | Jupyter Notebook | UTF-8 | Python | false | false | 2,174 | py | # script that contains basic functions
import pandas, numpy
from custom_settings import *
# function that returns a set with all ensembl gene IDs of protein coding genes
def get_PC_genome(cursor):
query = """select ensembl_gene_id from {}.protein_coding_genome""".format(DB_NAME)
cursor.execute(query)
genome = set... | [
"lambourne.luke@gmail.com"
] | lambourne.luke@gmail.com |
ed317eaf3d927e878cd3e726402cd5e2619d3ece | 654926e03dd260c45e0d59e408283a4305a1bf0e | /Train.py | 7f81c7a908b56dc25fa613c279ab6acd506b55a6 | [] | no_license | vedika19/Recommendation-System | e90bae3c6f0ddb1b6c871035c36e4e875d66a6cf | ddf00fa5bc1104ccb800840cb607248131256c79 | refs/heads/master | 2020-12-24T12:59:26.567930 | 2016-09-21T13:48:37 | 2016-09-21T13:48:37 | 68,821,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,397 | py | import psycopg2
import sys
import pprint
import math
'''RecommendationSystem(uid,mid,rating)
m_id=str(mid)
query = ("SELECT movie1,movie2,similarity FROM u1similarity WHERE movie1= %s OR movie2= %s ;")
data = (m_id,m_id)
conn_string = "host='localhost' dbname='postgres' user='postgres' password=''"
conn2 = psyc... | [
"noreply@github.com"
] | vedika19.noreply@github.com |
e49b0b1f74b2241ff1009361b14ff4039e1f2e49 | 79a6ffa19f88eb38ae029b7880d810021b10e849 | /backend/martin_helder/services/state_service.py | 183c9b646199194eea580183af483c61f6600cfc | [] | no_license | JoaoAlvaroFerreira/FEUP-LGP | c77ff1c25b570aa03f9f5823649959d39c8c08f5 | 941e8b2870f8724db3d5103dda5157fd597cfcc7 | refs/heads/master | 2022-12-06T11:58:52.397938 | 2020-08-24T20:16:47 | 2020-08-24T20:16:47 | 290,025,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | """
Service layer for state related operations
"""
from rest_framework.exceptions import ValidationError
from martin_helder.models import State
from martin_helder.views.view_utils import Utils
class StateService:
"""
Service class for state related operations
"""
@staticmethod
def add_state(name... | [
"joaoalvaro.ferreira@hotmail.com"
] | joaoalvaro.ferreira@hotmail.com |
76b78408bd66829efe2457f62a6350b9979bf5c0 | 869a29497f5b5c4a343b416cecef43951871dbb9 | /PyLICS/classifier/treeNode.py | e75b1a2e77da6890d2b91529cd0abd49070b3003 | [
"Apache-2.0"
] | permissive | Toshque/EvoForest | 93386386c90b9593f64d3e925f8c91f37b45e558 | af754745dec549d0d13f65cddeee4707c5a84290 | refs/heads/master | 2020-12-30T18:50:40.260134 | 2014-06-23T19:21:47 | 2014-06-23T19:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 28 21:42:50 2013
@author: sasha_000
"""
import helpers
class treeNode:
def __init__(self,samples,keyStatements,majorant = False):
'''a recursive decision tree class'''
self.isTerminal = True
self.isMajorant = majorant
self.dichotomy = N... | [
"sasha_panin@mail.ru"
] | sasha_panin@mail.ru |
f98630a744fd25a3a7b15fa669dee4269a993028 | 87d1e7edbdf86ab8e5c3558308fbdc24c3e71552 | /pyconduit/categories/variable.py | 491c9f63b6e4122d02f11d426b043a9079d3344f | [
"MIT"
] | permissive | rudrathedev/pyconduit | 3b53c1aa698335123a78fcd4d10488c4cb89fc2f | deef2b422bd976dbd006c2a5b1774a7c17657771 | refs/heads/main | 2023-05-10T09:21:14.860683 | 2021-06-23T23:49:05 | 2021-06-23T23:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,355 | py | # MIT License
#
# Copyright (c) 2021 Yusuf Cihan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | [
"54748183+ysfchn@users.noreply.github.com"
] | 54748183+ysfchn@users.noreply.github.com |
e1328ca78def8a7232a28d56a67044ccf8e5215d | 78b36ac94beb3d699ecb85071804807b80cac6b6 | /lab4.py | 4b77477ebf73ad2e4c7c6c4234a194ff629dbde0 | [] | no_license | FolloW12587/moscalenco_labs | eee536a515599ed526705581173f69b6dfc0b533 | e84a0236d7747a241016eaecb5a93792135d1db8 | refs/heads/main | 2023-04-06T07:15:00.548929 | 2021-04-09T01:58:30 | 2021-04-09T01:58:30 | 352,858,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | '''matrix = [
[1,1,0,0,1,1,1,0,0,1,0,1,0],
[0,0,1,1,0,0,0,0,1,0,1,0,1],
[0,1,0,1,0,1,0,1,0,1,0,1,1],
[1,1,0,0,1,0,1,0,0,1,0,1,1],
[0,0,1,1,0,0,0,1,1,0,1,0,0],
[0,1,0,1,0,1,0,1,0,0,1,1,1]
]'''
matrix = [
[1,1,1,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,1,1,1,1],
[0,1,0,1,0,1,0,1,0,1,0,1],... | [
"follow12587@gmail.com"
] | follow12587@gmail.com |
e96fb62e4c0431bce5afe872d8630f24a0f4bb80 | ac9ed2852d6e8217229cbeda0a6dd5f98953415a | /CoursPytorch/CIFAR10/models/resnet/resnet_model.py | 1351716654670393a01e0a7bba684b9d20d0b8d6 | [] | no_license | penda-diagne/projetMaster | 4afaf042aa140875c0f42a7d8cb4a27b2a3e23f1 | 44a74c53c7ae15ab556d46620be2cee8ea5e6cbc | refs/heads/master | 2021-08-19T05:22:06.364165 | 2021-07-05T21:45:25 | 2021-07-05T21:45:25 | 242,139,656 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | class ResNet(nn.Module):
def __init__(self, block, layers):
super(ResNet, self).__init__()
self.in_channels = 16
self.conv = conv3_3(3, 16)
self.bn = nn.BatchNorm2d(16)
self.relu = nn.ReLU(inplace=True)
self.layer1 = self.make_layer(block, 16, layers[0])
self.... | [
"noreply@github.com"
] | penda-diagne.noreply@github.com |
b284c2b20a27edfd46ff6f14ba59bcd5aff733d3 | be026334d457b1f78050f8262cd693922c6c8579 | /onnxruntime/python/tools/transformers/fusion_gpt_attention_megatron.py | 5418ccf513c770d3ec626ac6520e367c249eaa37 | [
"MIT"
] | permissive | ConnectionMaster/onnxruntime | 953c34c6599c9426043a8e5cd2dba05424084e3b | bac9c0eb50ed5f0361f00707dd6434061ef6fcfe | refs/heads/master | 2023-04-05T00:01:50.750871 | 2022-03-16T15:49:42 | 2022-03-16T15:49:42 | 183,019,796 | 1 | 0 | MIT | 2023-04-04T02:03:14 | 2019-04-23T13:21:11 | C++ | UTF-8 | Python | false | false | 10,803 | py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#--------------------------------------------------------------------------
import numpy as np
from logging import getLogger
from onnx import helper, ... | [
"noreply@github.com"
] | ConnectionMaster.noreply@github.com |
a36bee353387612fcbb653c63cb1367cb93a70da | ba5dbb751a44974f1ec1914b580fc79734cd3204 | /prog_fadd.py | 96202c1804756e39ececd8f4686d1e9305271fe3 | [] | no_license | HARINI14/HARINI.R | 6be01708e2b09e3f5f47fe0c87a6c487063c03f0 | 1c5d9f89181211605859360c2bb3d505aee06990 | refs/heads/master | 2021-05-11T12:21:49.788490 | 2018-03-13T09:52:34 | 2018-03-13T09:52:34 | 117,656,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | def add (x,y):
return x+y
def sub (x,y):
return x-y
print (add(2,7))
print(sub(7,2))
print (add(100,200))
| [
"noreply@github.com"
] | HARINI14.noreply@github.com |
c0705ef0d9e607dd455bfaf0f2917fd5a8ebcf1d | 88c39688db3835ed45c8efe43d4de2b8ade66b62 | /models/utils.py | c48b64d32d355502cd546c35e8fb19784b4948fd | [] | no_license | huyen-spec/NEGCUT | f87a77e65b24fe80a1d66e54f6561df528ff6785 | b6f3c65e9d4be747567c9baba415cadc320071a2 | refs/heads/main | 2023-09-03T19:57:47.056295 | 2021-10-21T13:42:22 | 2021-10-21T13:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,245 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import init
import functools
from torch.optim import lr_scheduler
import numpy as np
###############################################################################
# Helper Functions
#####################################################... | [
"noreply@github.com"
] | huyen-spec.noreply@github.com |
5f5e98e0204db775e5b06fd86453f2a62c41f96b | 6dc685fdb6f4a556225f13a1d26170ee203e9eb6 | /Windows2016Lab/scripts/Service_Windows2016_Action___create___Task_set_parameters.py | 57d63f95d0ebaa657302006a67576086a8cb18df | [
"MIT"
] | permissive | amaniai/calm | dffe6227af4c9aa3d95a08b059eac619b2180889 | fefc8b9f75e098daa4c88c7c4570495ce6be9ee4 | refs/heads/master | 2023-08-15T17:52:50.555026 | 2021-10-10T08:33:01 | 2021-10-10T08:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | username = 'user-{}'.format(_construct_random_password(8,numDigits=4, numLetters=4, numPuncs=0, numCaps=0).lower())
password = _construct_random_password(10,upper=14, numDigits=4)
print('ACCESS_USERNAME={}'.format(username))
print('ACCESS_PASSWORD={}'.format(password))
calm_index = int('@@{calm_array_index}@@')
email_... | [
"husain@alsayed.ws"
] | husain@alsayed.ws |
b3f7a3b1b139856ff26b9d63e72702a595467d51 | d10e3eebe8ab1c59f9504ec3ca360b4e7c5ff897 | /04.MachineLearning_ckekim210119/app.py | cc4c2a9d5c5c3d978d19ba4585b1638584e25b66 | [] | no_license | EGEG1212/Python-flask-web-2020 | bd7bdaf2aa2b9667543a7beb28f735664d50b20f | c8cb43d72b7617f86e366da80029707cf1677fa6 | refs/heads/master | 2023-02-22T12:34:07.257496 | 2021-01-20T01:14:49 | 2021-01-20T01:14:49 | 320,116,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | from flask import Flask, render_template, session, request, g
from datetime import timedelta
import os, json, logging
from logging.config import dictConfig
from bp1_seoul.seoul import seoul_bp
from bp2_covid.covid import covid_bp
from bp3_cartogram.carto import carto_bp
from bp4_crawling.crawl import crawl_bp
from bp5_... | [
"dana1anne@naver.com"
] | dana1anne@naver.com |
a4204b8de8fa12aaab8d15d25093be83ff68d98f | 05010198ebb8b61fe7a96e5e074125d65850e527 | /geometricka-kalkulacka.py | 5ca05cef99a9e3aa5eae3adc6035439ee1d4b801 | [] | no_license | Jakub-program/python-beginningforme | 9be83729e6f9d0e7a760f8802866d9c0aa365d8c | 69bfb4dd40bc2213f74eebe497dce8ede1002f3c | refs/heads/main | 2023-01-28T20:58:40.139546 | 2020-12-13T18:13:40 | 2020-12-13T18:13:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | strana = float(input('Zadej stranu ฤtverce v centimetrech: '))
cislo_je_spravne = strana > 0
if cislo_je_spravne:
print('Obvod ฤtverce se stranou', strana, 'je', 4 * strana, 'cm')
print('Obsah ฤtverce se stranou', strana, 'je', strana * strana, 'cm2')
else:
print('Strana musรญ bรฝt kladnรก, jinak z toho nebud... | [
"noreply@github.com"
] | Jakub-program.noreply@github.com |
dd0eb441e105f56c21813d7d9263c17466d46938 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/217/usersdata/274/113684/submittedfiles/av2_p3_m2.py | 56a351331cc54ba12f7e3c1497129b302fa40d64 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # -*- coding: utf-8 -*
n=int(input("Dimensรฃo do Quadrado: "))
while notn>=3:
n=int(input("Dimensรฃo do Quadrado: "))
M=[]
for i in range(0,n,1):
L=[]
for j in range(o,n,1):
L.append(int(input("Elemento da Linha: "))
M.append(L)
somaL=[]
for i in range(0,n,1):
somaL.append(sum(M[i]))
somaC=[... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
39f32cc80893af7d76427d8ec9ad5cade4048447 | c8c8518611d350841d454c4474944bf28b34e4c6 | /rna/rna_classifier.py | 116adf156ec1a09471f437b041523ca8121f4995 | [] | no_license | guustavov/hybrid_intrusion_detection_classifier | 6a68c230af5ed341f9cf56cfd3afdc7ac5b18880 | b63ed7ae352410713d81879348f5b76adf1fd5a2 | refs/heads/master | 2021-07-13T00:29:13.383733 | 2019-02-22T18:16:45 | 2019-02-22T18:16:45 | 133,855,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | from rna_module import RnaModule
import sys
import pandas
import os
import time
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/..")
from dataSet import DataSet
class RnaClassifier(object):
#conjunto de dados de treino
data_set = None
#conjunto de dados de teste
test_data_set = None
... | [
"guustavov@gmail.com"
] | guustavov@gmail.com |
0e800540ed3062e989d54a15ac33b4d0c71b1497 | 27dbf8e0530aa36ed814631c293ee79667fde407 | /testarea/archive/gpiozer.py | 83e6e78f824150baebf220aec7292c2d576a5174 | [] | no_license | HydroFly/HydroflyGeneral | 68cdf2bb2e524f65851fbdc38059a8465e6f4c0d | 906f2fed5c5ec535949d6409d50c272502b44ab4 | refs/heads/master | 2020-04-24T21:10:40.340239 | 2019-04-26T19:21:00 | 2019-04-26T19:21:00 | 172,268,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from gpiozero import LED
from time import sleep
led = LED(17)
while True:
input("Press enter to turn on")
led.on()
input("Press enter to turn off")
led.off()
#while True:
# print("on")
# led.on()
# sleep(1)
# print("off")
# led.off()
# sleep(1)
| [
"adam.benabbou@hotmail.com"
] | adam.benabbou@hotmail.com |
001515a2694bbc65e444cc746ce8266e4cb6b53a | 5850ae6560f23640645f23c5276b037daf45aa64 | /generate_reports.py | 96437e8cf4943f58d777c836bd7683a016b3b992 | [] | no_license | hayashikan/irs-program | a38237f513941da1f58ac5954c57425c47f2a94f | 8c9f3f8417f774e7601475ce75e7ecdb9d6763d6 | refs/heads/master | 2021-01-11T12:18:34.706313 | 2017-03-09T14:48:44 | 2017-03-09T14:48:44 | 76,469,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # -*- coding: utf-8 -*-
"""
Project: MAM Integrated Reporting System
Author: LIN, Han (Jo)
"""
# import modules
import os
import sys
import inspect
# import modules in subfolder
cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(
os.path.split(inspect.getfile(inspect.currentframe()))[0], "resources")))
... | [
"noreply@github.com"
] | hayashikan.noreply@github.com |
9f572f21ece74b880a18dc64e33f462fe5217cf1 | d89ab48367395ac8efca49c4332224a98434b261 | /rocketball/dna.py | ad17f4b439354ac12e03014d8870c1cb1ae325f0 | [] | no_license | mohanmanju/pyGame | c741e1b2644945387948064cb756a967c0b0eeb9 | 4cb14b7519c8535ac3fb16422434690240f7f0c0 | refs/heads/master | 2021-01-02T09:35:22.249080 | 2017-08-22T17:46:19 | 2017-08-22T17:46:19 | 99,253,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import random
class Dna:
def __init__(self):
self.genes = [random.uniform(0,1) for _ in range(0,4)]
pass
pass
| [
"31mohan31@gmail.com"
] | 31mohan31@gmail.com |
6a4c16868431e1e23eb5da001f0272c6e45ae97e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /7ECZC8CBEhy5QkvN3_15.py | b7cee2eac0f62400c8ad19d3b56c9c8b2daff2e8 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py |
def how_many_walls(n, w, h):
sum_ = 0
count = 0
wallSquare = w * h
while sum_ <= n:
sum_ += wallSquare
count += 1
return count - 1
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9fc4ee68aa42d0c41c149c5974d84484312cf2f3 | 8c0d2c60b3c1cb0df78d5c33faed23bfa35e5fbd | /k8s_client.py | 9ff6845a5a0923d6eb2f968dded6af147191850d | [] | no_license | relent0r/k8s_play | 58d6cce2747d7fe5407c67ee1679da0e0dcfd95a | 15af4468e04beabc8c8e3163a18f9466eebf0b69 | refs/heads/master | 2020-08-04T03:32:46.356682 | 2019-10-03T20:30:38 | 2019-10-03T20:30:38 | 211,988,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | from kubernetes import client, config
import k8s_config
import logging
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
class k8sclient():
def __init__(self):
self.host = k8s_config.host
self.port = k8s_config.port
self.token = k8s_config.token
self.... | [
"aaron.warner@revera.co.nz"
] | aaron.warner@revera.co.nz |
d067b118d900cc23f8ce358f3377259f6a31eb92 | 922be0d4ff9317d32e2c320480ece35c6f85bf4f | /cerabot/__init__.py | a760818ea4d2abe2093fdf40cdac94e3dbd992d1 | [] | no_license | ceradon/cerabot-rewrite | bbeed8e818201a9f5b56a813636d36740859290b | 7ce7a4ddca5a557677f15fdedfe70b3476266a53 | refs/heads/master | 2021-01-19T12:31:28.070627 | 2015-01-07T01:09:19 | 2015-01-07T01:09:19 | 28,889,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from wiki import api
api = api
| [
"ceradon_wiki@hotmail.com"
] | ceradon_wiki@hotmail.com |
526512060ec60f64cab763dcdc20a58c882fa21b | e3040a2e23a856e319e02037dc6baf3882c796b9 | /samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py | bca423ad68f208522270ab2159908c0f06ae7b00 | [
"Apache-2.0"
] | permissive | mishin/openapi-generator | 2ed2e0739c0cc2a627c25191d5898071d9294036 | 3ed650307513d552404f3d76487f3b4844acae41 | refs/heads/master | 2023-06-10T03:01:09.612130 | 2022-10-14T08:29:15 | 2022-10-14T08:29:15 | 271,080,285 | 0 | 0 | Apache-2.0 | 2023-05-30T02:01:25 | 2020-06-09T18:29:41 | Java | UTF-8 | Python | false | false | 12,472 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from petstore_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa... | [
"noreply@github.com"
] | mishin.noreply@github.com |
734245f9722d87772c906af51f97abc8ae257ed2 | 4c5ab1dac432f7b212cf608e5647e3dd2f2c8dcc | /game/deck.py | c8bc915205606bc35b67d686d009c2dc4565e5d3 | [] | no_license | erikvanegmond/Machiavelli | fe0c342067c29380e207b62255cb117bb53339fe | 29405eb36f4b1f9d7283deaa64c2deb068a1f458 | refs/heads/master | 2021-01-10T12:38:46.178820 | 2016-02-28T15:43:58 | 2016-02-28T15:43:58 | 50,052,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import json
import random
import os
from game.card import Card
class Deck:
deck = []
trash = []
def __init__(self):
self.read_deck()
# pass
def __repr__(self):
return ", ".join(self.deck)
def draw_card(self):
card = self.deck.pop()
return card
def r... | [
"erikvane@gmail.com"
] | erikvane@gmail.com |
62ad1f4df80fe229b09f7814ab8bfb7a06bf8061 | 1626c64af4451dedfa0ea65b7b6e360e26c79669 | /Feature_Extraction/ๅญๅ
ธๆฐๆฎๆฝๅ็นๅพ.py | ddc7fe2aa47e01e31c3a563ac2d4c8437e27b20e | [] | no_license | ziranjuanchow/MachineLearning-1 | e356932bb8b7ff0dbf53234da509a1b96a7637ce | 351a42493406fc1c1a5d7fd3d70acbb3d589c428 | refs/heads/master | 2020-04-19T22:53:49.703582 | 2019-01-24T15:09:07 | 2019-01-24T15:09:07 | 168,482,514 | 1 | 1 | null | 2019-01-31T07:30:58 | 2019-01-31T07:30:58 | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
__author__ = 'liudong'
__date__ = '2018/10/30 2:23 PM'
from sklearn.feature_extraction import DictVectorizer
def dictvec():
"""
ๅญๅ
ธๆฐๆฎ็นๅพ็ๆฝๅ
:return:
"""
measurements = [{'city': 'Beijing', 'temperature': 33.},
{'city': 'London', 'temperature': 12.},
... | [
"ld815626@hotmail.com"
] | ld815626@hotmail.com |
27e978b4cc4eba7674939dc5cb9dd6908983204f | 2ccfe89f6a647dd5c121fcd9ba044c59bc6f5319 | /gamma/app/settings.py | 2c596b26ed129a32d51abd0003b8de006d3a3d55 | [] | no_license | another-it-team/no-more-math | ec30409db053e5c04b90ad53923d59654eff5787 | 3d3c7f946e9dd3a44ab892b2f96ac095025dafd8 | refs/heads/master | 2020-03-22T10:02:20.014604 | 2018-07-06T16:59:10 | 2018-07-06T16:59:10 | 139,876,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | ../ settings.py
| [
"dinhvankiet124@gmail.com"
] | dinhvankiet124@gmail.com |
db889d7c5e5cba1d1b2ed71e137b42acf283c13f | b89ec2839b4a6bd4e2d774f64be9138f4b71a97e | /dataent/patches/v7_2/set_doctype_engine.py | 6de22a5c653dc5755560998976ce23c246a2026d | [
"MIT"
] | permissive | dataent/dataent | ec0e9a21d864bc0f7413ea39670584109c971855 | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | refs/heads/master | 2022-12-14T08:33:48.008587 | 2019-07-09T18:49:21 | 2019-07-09T18:49:21 | 195,729,981 | 0 | 0 | MIT | 2022-12-09T17:23:49 | 2019-07-08T03:26:28 | Python | UTF-8 | Python | false | false | 231 | py | from __future__ import unicode_literals
import dataent
def execute():
for t in dataent.db.sql('show table status'):
if t[0].startswith('tab'):
dataent.db.sql('update tabDocType set engine=%s where name=%s', (t[1], t[0][3:])) | [
"38303879+dataent@users.noreply.github.com"
] | 38303879+dataent@users.noreply.github.com |
b8dfe67598216c766a760dde33a81a620149a763 | 5462ef02d1a50c327b9f5196523c616dcfc772a9 | /src/Emo/settings.py | 8d0715f49e4c64294596d0db70e02bc9b92a7286 | [] | no_license | shagun11/django-project-template | 0c4d40ff18782abe2590154a3896988bc1ee327f | 78968b8e5415d2878682b20da4a9ed0e83ba5b5e | refs/heads/master | 2021-01-14T14:37:47.214397 | 2015-01-28T08:04:17 | 2015-01-28T08:04:17 | 29,926,082 | 0 | 0 | null | 2015-01-27T17:39:46 | 2015-01-27T17:39:46 | null | UTF-8 | Python | false | false | 5,416 | py | # Django settings for Emo project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
"shagun.d@hashedin.com"
] | shagun.d@hashedin.com |
b6dd4677c551c223c34be40dc606b4e5ec985489 | 9e236f93f5f4d55af0e98dac56866c976899ee1d | /.c9/metadata/workspace/Unused/NotUseful/connection.py | 0fabf1e2eb77adfd3304b6b2219da1e8ad9ac73a | [] | no_license | willyao99/botterthanyouAI | 965f13dea2437aa4d65301701415ba8977b5640e | 95792d842c654b6593fe7a895a6ba1266aa01cb7 | refs/heads/master | 2021-05-02T06:34:55.721476 | 2017-12-07T14:47:13 | 2017-12-07T14:47:13 | 120,860,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | {"filter":false,"title":"connection.py","tooltip":"/Unused/NotUseful/connection.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":12,"column":40},"end":{"row":12,"column":40},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode"... | [
"willyao99@users.noreply.github.com"
] | willyao99@users.noreply.github.com |
677d22f42d470e7e6fab11f89b82637deaaa0fb6 | be80a2468706ab99c838fa85555c75db8f38bdeb | /app/reward/migrations/0002_auto_20180822_0903.py | 2e25721da289ed95493031d61d3ce8c3cf1f9c9a | [] | no_license | kimdohwan/Wadiz | 5468d218ba069387deabf83376b42a4f69360881 | 91f85f09a7c9a59864b69990127911a112d4bdbd | refs/heads/master | 2021-06-24T06:41:04.111305 | 2019-07-03T12:51:18 | 2019-07-03T12:51:18 | 143,955,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | # Generated by Django 2.1 on 2018-08-22 00:03
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reward', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"lockstom@gmail.com"
] | lockstom@gmail.com |
15f2e0a46eaa4e6963b4aac82d4da11490982d89 | 92e2a92512c98de0c73748bb8fd344b6a0bbfae6 | /provision/admin.py | 4248e502dbea898429c654fb586c445079ed06a5 | [] | no_license | ashishthedev/elevation | 7a5834e8885224a71de640b7a82591f5d8b68273 | cf66b2ffd04b6a4baf2d715ed72e8fc3b84c8104 | refs/heads/master | 2021-01-10T14:03:09.490736 | 2020-02-19T03:37:01 | 2020-02-19T03:37:01 | 51,630,406 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.contrib import admin
from provision.models import Provisioner
@admin.register(Provisioner)
class ProvisionersAdmin(admin.ModelAdmin):
pass | [
"ashishthedev@gmail.com"
] | ashishthedev@gmail.com |
3a03ed2812c020cfd50b5bb2bfe6e9223a67b34c | 418ed1e9c0d28fb17781689b7499d015431fd1ae | /BtagHLT/TTbarSelection/python/ttbarselection_cfi.py | a4ab2ba54b77ed31ee40d7adbbf0a57aef55aab5 | [] | no_license | tropiano/usercode | a9f1362dea803dc8c746fd40826af6a405be02b2 | 92b3bb2d346d762f034c8acf0b11693f21723788 | refs/heads/master | 2020-06-05T22:32:11.617468 | 2012-12-25T12:00:06 | 2012-12-25T12:00:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import FWCore.ParameterSet.Config as cms
ttbarselection = cms.EDAnalyzer('TTbarSelection',
vertexSrc = cms.untracked.InputTag("offlinePrimaryVerticesWithBS"),
electronSrc= cms.untracked.InputTag("selectedElectrons"),
muonSr... | [
""
] | |
c2c5cbfe74a3fa9a9fd7c1cbe877ca5cb4954f87 | 58c64ffecaf6c8b5998c703786405ca8fefcb948 | /ValidateInput.py | 25dd3e5ac8466af8d42bb06a53fb84b5abf614fb | [] | no_license | JannickStaes/LearningPython | bd10a7dd5f4697c8ecbc6da1bbf901fde9c68248 | 3f78759c72320170ab0189cfbbaff35b385c381d | refs/heads/master | 2022-02-26T02:29:52.399371 | 2022-02-13T20:41:15 | 2022-02-13T20:41:15 | 220,836,103 | 0 | 0 | null | 2019-11-10T19:08:08 | 2019-11-10T19:02:09 | Python | UTF-8 | Python | false | false | 344 | py | while True:
print('Enter your age.')
age = input()
if age.isdecimal():
break
print('Please enter a number for your age.')
while True:
print('Select a new password (letters and numbers only):')
password = input()
if password.isalnum():
break
print('Password can only have ... | [
"staesjannick@gmail.com"
] | staesjannick@gmail.com |
69a193b7fc5036acfd0ec377bc03b370c4224796 | 3cabfd6ad2d1477b579dadb959d74931daf67c3c | /Basic/41_integer_to_binary.py | 924e2f5e671f4f54537928a58859dc1dae914d85 | [] | no_license | SunnyRaj94/Basic-Python-And-Data-Structures | 1a7100d91d3bbd82157feb7bcbd105c8bc7fd765 | 726c044773a0fe7146356c0bee28805eea6d15e2 | refs/heads/master | 2020-11-25T07:27:47.441078 | 2019-12-21T07:23:39 | 2019-12-21T07:23:39 | 228,556,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | """
Created on 12/12/2019
@author: Sunny Raj
"""
"""
Problem Statement:
Write a Python program to convert an integer to binary keep leading zeros
"""
# asking for integer input from user
integer = int(input("enter integer value "))
print(format(integer, '08b')) #convering to a 8bit binary format
print(format(integer, ... | [
"sunnyraj94@hotmail.com"
] | sunnyraj94@hotmail.com |
2afef828f3e42fd38f81af846f9e6dca18544acf | 23bb29a6cf89c57cea79d1d4a52890a232582b87 | /setup.py | fb4d4c5626042066f7a2148ae399aa1ccba42226 | [] | no_license | dave-m/domaincheck | f52cf211c50c631b16c6972f0330028713f7840e | c2ba6647dd85786c00f8913e84db8dbb20b0e143 | refs/heads/master | 2021-01-20T04:24:54.770287 | 2014-02-23T20:04:00 | 2014-02-23T20:04:00 | 6,432,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!/usr/bin/env python
from distutils.core import setup
from distutils.command.install_data import install_data
setup(name='DomainCheck',
version='0.1',
description='Domain check website',
author='David Mcilwee',
author_email='blak631@gmail.com',
url='',
packages=['domain... | [
"blak631@gmail.com"
] | blak631@gmail.com |
ac9322695c8338f7c5b6352dc885ec393d8b1b9a | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/pandas/tests/indexes/test_base.py | 48214ef4e92a8217fc8c6c342ae4de28f448658f | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104,196 | py | # -*- coding: utf-8 -*-
from collections import defaultdict
from datetime import datetime, timedelta
import math
import operator
import sys
import numpy as np
import pytest
from pandas._libs.tslib import Timestamp
from pandas.compat import (
PY3, PY35, PY36, StringIO, lrange, lzip, range, text_type,... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
3f2801ee0162f33263eb9044744a84e3a7a154e9 | 587973fdf376f448b90f44f713742ea02062666b | /config.py | 418ebf67d4cb96815ebbce4d111bc70640c10183 | [] | no_license | whistlepark/UCSD-ECE148-WI20-TEAM6 | 79383160cd4c8cc458903bf45b5dd2ca4dbed1bd | 9db60ed81146959c295963c47b780fcf3d20bc9f | refs/heads/master | 2021-01-15T03:27:32.500974 | 2020-03-08T23:58:24 | 2020-03-08T23:58:24 | 242,863,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,067 | py | """
CAR CONFIG
This file is read by your car application's manage.py script to change the car
performance.
EXMAPLE
-----------
import dk
cfg = dk.load_config(config_path='~/mycar/config.py')
print(cfg.CAMERA_RESOLUTION)
"""
import os
#PATHS
CAR_PATH = PACKAGE_PATH = os.path.dirname(os.path.realpath(__file__))
DAT... | [
"noreply@github.com"
] | whistlepark.noreply@github.com |
9bc9825150a1f5bfa183564bdebfb36753c63a47 | cdfce941968359d04e928f1bf137234d36c64b6b | /extras/ml-tweets/__init__.py | 77bfb9bfa1dd7d9f5d9690f58e14ef3c17c97c91 | [] | no_license | lucmski/botornot | 35bafeedc90724a0b0e3f40ac5bad647aea51110 | 5357f43c85628d540c4d48391e37d19af9c8733a | refs/heads/master | 2020-07-15T13:49:19.016905 | 2019-09-01T20:30:37 | 2019-09-01T20:30:37 | 205,576,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from . import getTweets
from . import analyzeTweets
from . import plotTweets
from . import getStockData
from . import analyzeStockData
from . import plotStockData
| [
"michalskiluc79@gmail.com"
] | michalskiluc79@gmail.com |
f6e4d32e7bb52dd5732366ab2f7239dcf9a91069 | c8a86573c16934149dfc768f44fec1b8152b4e97 | /interface/jgj_login_test.py | d639844963a12ade19b1a63d18599e42963a9ff9 | [] | no_license | slp520/AutoTest | 6eb09279168553955a766bfae5ca7bdfdf86ab40 | fd3203b129f7541ea78faa5a216fe3bf06fdff17 | refs/heads/master | 2021-12-14T03:31:29.957372 | 2021-11-12T02:13:01 | 2021-11-12T02:13:01 | 161,150,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,274 | py | import requests
import unittest
import json
#็ป้ๆฅๅฃๆต่ฏ
class GetLoginTest(unittest.TestCase):
def setUp(self):
self.base_url = 'http://10.12.21.115:61021/jgj/api/user/login'
self.smg_url = 'http://10.12.21.115:61021/jgj/api/user/smgsend'
self.case_name = ''
def test_login(self):
... | [
"sunlinpeng@fangdd.com"
] | sunlinpeng@fangdd.com |
1e30a64ef30c526d7e94b66f205c369d97dd8da2 | fa04309288a0f8b2daae2fd73c8224a1c0ad4d95 | /eventkit_cloud/tasks/tests/test_task_factory.py | b02b4477e9ad630dbbdb95b91ae28bb1c39b5c47 | [] | no_license | jj0hns0n/eventkit-cloud | 7bb828c57f29887621e47fe7ce0baa14071ef39e | 2f749090baf796b507e79251a4c4b30cb0b4e126 | refs/heads/master | 2021-01-01T19:45:32.464729 | 2017-07-24T19:01:24 | 2017-07-24T19:01:24 | 98,675,805 | 0 | 0 | null | 2017-07-28T18:16:34 | 2017-07-28T18:16:34 | null | UTF-8 | Python | false | false | 7,545 | py | # -*- coding: utf-8 -*-
import logging
import os
import uuid
from django.contrib.auth.models import Group, User
from django.contrib.gis.geos import GEOSGeometry, Polygon
from django.db import DatabaseError
from django.test import TestCase
from eventkit_cloud.jobs.models import Job, Region, ProviderTask, ExportProvide... | [
"joseph.svrcek@rgi-corp.com"
] | joseph.svrcek@rgi-corp.com |
f44f6d9972814a4e7a1f84001a60cf2ac08ac418 | 5c26eafece0ee85a7ed4b6a34ee52753d7c86e49 | /polyaxon/estimators/hooks/step_hooks.py | 0e177575b29f1a02195d3439137b45db2c0d2a1a | [
"MIT"
] | permissive | StetHD/polyaxon | 345257076d484b2267ba20d9d346f1367cdd92d3 | dabddb9b6ea922a0549e3c6fd7711231f7462fa3 | refs/heads/master | 2021-03-19T06:45:51.806485 | 2017-09-26T14:31:26 | 2017-09-26T14:36:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,184 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from collections import OrderedDict
from tensorflow.python.training import basic_session_run_hooks
from polyaxon.estimators.hooks.utils import can_run_hook
class StepLoggingTensorHook(basic_session_run_hooks.LoggingTensorHook)... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
612d839588a33be1fa3c6933a0fd9b694f8ee6c8 | b484f2515f8dd4c9e1d1451aba82d0225693e897 | /nlps/app.py | d74b5efd3df57214e14b673125d3516de794e8c4 | [] | no_license | titan2351/nlps | e521f14e5566ffdab74b259f028025e121159641 | 5d96db5754248317eb0db951821a3d07356537cb | refs/heads/main | 2023-01-28T08:42:45.126902 | 2020-11-23T14:29:55 | 2020-11-23T14:29:55 | 315,046,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from flask import Flask, render_template, request, url_for
from flask_wtf import FlaskForm
import os
import pandas as pd
from wtforms.fields import SelectField
from flask_wtf.file import FileField, FileRequired, FileAllowed
from flask_uploads import configure_uploads, IMAGES, UploadSet, DOCUMENTS
from werkzeug.utils im... | [
"airwind266@gmaill.com"
] | airwind266@gmaill.com |
79113f4805093df2885ff54448e5bccd23cc252a | b11273fa7e74564f9e6b5b7448df266c7880ddac | /SmartP.py | 2aa08aad4ad7ba9b9f945552c369cf286a8448d2 | [] | no_license | VNDIRECT/EngineP | 5a08873d368846776775f9bf329c88804e9a9150 | 9a9f44f4a35a91ccdbf4bcf892077bae2373b157 | refs/heads/master | 2021-01-19T03:41:00.908508 | 2017-10-04T06:40:11 | 2017-10-04T06:40:11 | 65,744,760 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 14 18:38:25 2016
@author: phucn_000
"""
import json
from engineP import compute
from portopt import markowitz
import finfo
from error import CommonError
from flask import Flask, request, jsonify
from crossdomain import crossdomain
import time
app = Flask... | [
"kidphys@gmail.com"
] | kidphys@gmail.com |
5f0af102f38a471e26634f5388a653dc173c417c | 4ced1662347a724208d1fa9eafa00500538eb530 | /src/squareservice/squareservice/genproto/demo_pb2_grpc.py | 7cf4ec955753621c1f10e73205b547c443aab929 | [
"MIT"
] | permissive | brymck/gke-site | 5e554057f540006c4a7ce5e2542c3289da1ece9c | 1a4c36e3ebfb5fd5e85645e8a56e6c081eb807dd | refs/heads/master | 2020-04-14T08:31:43.662530 | 2019-01-22T10:48:05 | 2019-01-22T10:48:05 | 163,737,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,023 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from . import demo_pb2 as demo__pb2
class HelloServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
""... | [
"bryan.mckelvey@gmail.com"
] | bryan.mckelvey@gmail.com |
9c4eba45621b58b6f705c1771ddf11d62197ef10 | 290b9d2e1b8a84cebc522ea9a867edf211b60973 | /DoItJumpTo01/02.py | bea5cedffe4ae6f645f0cfa4d3274f216821486a | [] | no_license | EllieHan93/Python | d2dcedf8b8e3f4ada0268f9f761bcedbc8391314 | ad9e88617a510e0b4fd6ddb7db74402e41bbb4cc | refs/heads/master | 2020-07-22T20:53:55.091578 | 2019-12-15T11:44:21 | 2019-12-15T11:44:21 | 207,324,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | #02.py
print("=" *50)
print("My Program")
print("=" *50) | [
"hjhhahahoho@naver.com"
] | hjhhahahoho@naver.com |
c2420aa4c06b80b0a03746ec46732f57882ffada | a3719ba9c5c834479f9e200816be0391863ebe78 | /lesson_5_dz2.py | 6dafe1f089ebe94f6abaa254b11c418ffc151047 | [] | no_license | NikDestrave/GeekBrains_Python | 94745faf11b864ce3322fc393bcb3b8656bcffbb | c9bf127c1580a6ba2037cfea002fb0e39163ed72 | refs/heads/master | 2020-12-20T17:29:44.077461 | 2020-08-30T05:05:29 | 2020-08-30T05:05:29 | 235,931,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # 2. ะกะพะทะดะฐัั ัะตะบััะพะฒัะน ัะฐะนะป (ะฝะต ะฟัะพะณัะฐะผะผะฝะพ), ัะพั
ัะฐะฝะธัั ะฒ ะฝะตะผ ะฝะตัะบะพะปัะบะพ ัััะพะบ,
# ะฒัะฟะพะปะฝะธัั ะฟะพะดััะตั ะบะพะปะธัะตััะฒะฐ ัััะพะบ, ะบะพะปะธัะตััะฒะฐ ัะปะพะฒ ะฒ ะบะฐะถะดะพะน ัััะพะบะต.
with open('file2.txt', 'r') as f:
print(f'ะะพะปะธัะตััะฒะพ ัััะพะบ = {len(f.readlines())}')
f.seek(0)
count = [len(line.split()) for line in f]
print(count)
p... | [
"nikxdrummer@gmail.com"
] | nikxdrummer@gmail.com |
e4ae96c0131406c2419a148c0186b3269acfa42f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03964/s755365360.py | 9f2a66cabd6d3f24f2aafce6d59b731dbfbc227f | [] | 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 | 619 | py | import bisect
import collections
import copy
import functools
import heapq
import math
import sys
from collections import deque
from collections import defaultdict
input = sys.stdin.readline
MOD = 10**9+7
N = int(input())
T = [0]*N
A = [0]*N
for i in range(N):
T[i],A[i] = map(int,(input().split()))
t,a = T[0],A[0... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ae75e51110b700b347454faed95d66f5be954da0 | a1973fa91ca1883be6143771feece9dcbdf84a72 | /algo/wordBreak.py | 432c3188003f0d2d9ed9c848f60717372d33c728 | [] | no_license | ajaytani/python | a05d3d9607ead75d8e6dc5eadadbfb28f7116623 | 0751bb5f22fdf512e46771391b6464d11773dc19 | refs/heads/master | 2021-01-19T23:44:18.968570 | 2020-08-11T06:34:51 | 2020-08-11T06:34:51 | 89,016,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | def wordBreak(s,wordDict):
n = len(s)
if not s or n== 0:
return False
dp = [[] for i in range(n+1)]
dp[0] = [0]
for i in range(1,n+1):
for j in range(i):
if s[j:i] in wordDict:
dp[i].append(j)
print dp
res = []
backTracking(dp,s,n,res,'')
... | [
"revathi@gmail.com"
] | revathi@gmail.com |
c425f31861bfb4ccd22b1b6cf8fc228238168d3c | 0257cede18ea0beb18486cc249adab1a2b15c6b7 | /testmodules/RT/cartridge/server_side_bundling_libs_and_force_clean_build.py | de769345e1704967c0655f3998b015948839dfd5 | [] | no_license | xiama/automations | 13c0308afc4fa0d3267025f8529f97d80f5cf6fb | 4cf4e1ab5b249b23510f3929f46f3768529788f1 | refs/heads/master | 2021-01-17T05:36:02.990075 | 2013-11-29T04:26:00 | 2013-11-29T04:26:00 | 14,791,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,431 | py | import os
import common
import OSConf
import rhtest
WORK_DIR = os.path.dirname(os.path.abspath(__file__))
class OpenShiftTest(rhtest.Test):
INTERACTIVE = False
def initialize(self):
try:
self.test_variant = self.get_variant()
except:
self.test_variant = 'perl'
... | [
"xiama@redhat.com"
] | xiama@redhat.com |
7b427a6ea7784fe57b83929971208d4a8ab309f5 | 796f41e9c4ffcd2f182847661d800e43ce35f133 | /knowledge_extract/src/utils/logger.py | 2b093cc101a21f494da9d091bb40d366c5c75a4e | [] | no_license | DendiHust/bert_pros | 3ae9fc3d55e6fe7cb251c5f43fe01304c19bd29b | ff7b585b678894f552a1d31912a967f3c638c361 | refs/heads/master | 2020-12-05T10:21:55.319525 | 2020-01-17T15:58:36 | 2020-01-17T15:58:36 | 232,078,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | # -*- coding: utf-8 -*-
import os
import time
import logging
import inspect
from src.utils import file_util
dt = time.strftime("%Y%m%d")
handlers = {logging.DEBUG: file_util.get_project_path() + "./log/debug_%s.log" % (dt),
logging.INFO: file_util.get_project_path() + "./log/info_%s.log" % (dt),
... | [
"msexuan@163.com"
] | msexuan@163.com |
84ef03241f898679f28eceb6fc11716406bc5283 | dc85229e6da452a54577cef2740de9413f3e4528 | /ArmstrongNumbers.py | a1bd165f3ec84125cad4064709e22ed5a15d6f2c | [] | no_license | mutlukilic/Python | 1ea2549027dc5e120934c06fca8f98e3e1865148 | 180407f14fd480cc70f0758b7b6f1554aa2630f9 | refs/heads/master | 2021-01-13T04:17:20.684858 | 2017-02-16T11:48:24 | 2017-02-16T11:48:24 | 77,472,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | basamak_sayisi = input("Basamak sayisini giriniz : ")
for i in range(10**(basamak_sayisi-1),10**basamak_sayisi):
armstrong = 0
for j in str(i):
armstrong += int(j)**basamak_sayisi
if(armstrong == i):
print(i)
| [
"noreply@github.com"
] | mutlukilic.noreply@github.com |
a7a836d34d05d89c6a4baa2e076e811ad85b12d4 | adffddf23696048e0cef2eb09137b8124d87b1b8 | /app/routes.py | 5237df198c13bf37d87574bbdc297ff2ad1a7fc0 | [] | no_license | sonicdm/dgc_finder | 4ba88bb136a8f6017cf8f97cdfb6326aae7c4241 | 5dd70d78fa83620fe7e96a947e5eb5510664f5e8 | refs/heads/master | 2020-03-19T00:30:54.935090 | 2018-05-30T18:47:02 | 2018-05-30T18:47:02 | 135,486,383 | 0 | 0 | null | 2018-05-30T19:08:24 | 2018-05-30T19:08:24 | null | UTF-8 | Python | false | false | 760 | py | from app import app
from flask import render_template, redirect, url_for, session
from app.functions import get_dgcr, gmaps_geolocator
import requests
import json
from app.forms import CityStateForm
from config import Config
@app.route('/', methods=['GET', 'POST'])
@app.route('/index', methods=['GET', 'POST'])
def i... | [
"danielwindheim@gmail.com"
] | danielwindheim@gmail.com |
05289f7ef1d3bf5a16d16440b251f0bf7002e2b3 | ff1477deb2b0bf0580ea512c1843a4085e639932 | /main.py | 521a0f3e15a8d864423d29388bc782737b4fb0e9 | [
"MIT"
] | permissive | SkylerHoward/O | f7ff9955499483f4368e01cd5c2991970b160d29 | 989246a5cdc297ab9f76cb6b26daebd799a03741 | refs/heads/master | 2021-07-08T19:57:12.042530 | 2017-10-07T13:33:44 | 2017-10-07T13:33:44 | 106,098,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import weather, morning, time, sleep, events
from datetime import datetime
from speak import *
speak = speech()
def main():
while True:
command = input('> ')
if command == 'sleep':
speak.speak('Good night.')
for line in sleep.main():
speak.speak(line)
if command == 'quit':
quit()
... | [
"noreply@github.com"
] | SkylerHoward.noreply@github.com |
75ef2897c41de5031b13106195ac168311611da6 | 626fdb9df49fc36fff5018a489e6089b0986ebd8 | /04/summing_one_million.py | 3aa0ce9559bdaa647f203af788d6bfee0ca59c89 | [] | no_license | ypan1988/python_work | 7bbf9ee2badb981bd2b309f39e07d49d761002c0 | 464f86f8e9348f4c604928d7db63c75e83aefd10 | refs/heads/main | 2023-03-27T11:12:28.934378 | 2021-03-28T22:00:28 | 2021-03-28T22:00:28 | 352,447,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | numbers = list(range(1,1000001))
print(min(numbers))
print(max(numbers))
print(sum(numbers))
| [
"ypan1988@gmail.com"
] | ypan1988@gmail.com |
0a10e0805cfdfb512f97c9daac68c0b5bb312b75 | f5b313dadf3b7e3d96ece1a456e21bc9bd1b26b4 | /utils/validates.py | e588d8b546ba3bb53ddafbd578685cb173184215 | [] | no_license | qq370154918/dev_04 | 547de9730bd680ba8b9ac1c6f819a000aa9e6e21 | 5ac9ebea729cc1817754416de967adbe58e46fc5 | refs/heads/master | 2023-07-29T13:14:19.261719 | 2020-12-29T08:02:58 | 2020-12-29T08:02:58 | 284,427,132 | 0 | 0 | null | 2021-09-22T19:38:32 | 2020-08-02T09:04:42 | Python | UTF-8 | Python | false | false | 600 | py | from rest_framework import serializers
from projects.models import Projects
from interfaces.models import Interfaces
from envs.models import Envs
def is_exist_project_id(value):
if not Projects.objects.filter(id=value).exists():
raise serializers.ValidationError('้กน็ฎidไธๅญๅจ')
def is_exist_interface_id(value)... | [
"xiaoliang.li@lixinchuxing.com"
] | xiaoliang.li@lixinchuxing.com |
06ce341e0e7626e2104a0667155275b069268653 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/pycon2013/html5slides/scripts/md/render.py | b5ef0975e20eb201985c57c5b48cd150050171da | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6e3940fcf589334234bc7943dfc2c0d8e860fc139a432eae485128714022232c
size 1807
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
bfe394598000549c8aa731dc5185e43ee6e450f1 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /Leetcode Contests/Biweekly Contest 24/Minimum Value to Get Positive Step by Step Sum.py | ed393ceda76cec842051a7cd8dd259618306c947 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from typing import List
class Solution:
def minStartValue(self, nums: List[int]) -> int:
sum = 0
min = nums[0]
for i in nums:
sum += i
if sum < min:
min = sum
if min >= 0:
return 1
else:
return abs(min) + 1
| [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
e5b0887d810d27576528bafda388fdfd915d3c4f | c6320d68968de93ce9d686f5a59bb34909d089bb | /03_Polynomial_Regression/polynomial_regression_rad.py | fafb65739a4f26fa1c7981097fe77412704b96b8 | [] | no_license | rbartosinski/MachineLearningRes | 0835e6b9f94c309bf2ce8ff7ceb73912a7eeea63 | 5a1af15e77d589149aa1cb22cb96f56956fd9a0f | refs/heads/master | 2020-04-07T00:58:03.692579 | 2019-01-11T13:49:12 | 2019-01-11T13:49:12 | 157,925,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 20 15:04:28 2018
@author: radek
"""
#wczytanie bibliotek
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#wczytanie danych
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2]... | [
"you@example.com"
] | you@example.com |
608f2efe8d41666029740500651dc44a0669ddd8 | 5f76538e2f3ee8ef0650ca3a98241de0a6995a69 | /rec/recommender/lipczac_spread_alpha.py | 39e0e077e9d14f36d4f45c2c2e1ec2dc10923dbd | [] | no_license | infsaulo/greenmeter | e0422bbef1a757a154da7a7b00f25f1bf6c7d82f | 61453017f51cfe53eb9b0f455d79ac545d6ff7a1 | refs/heads/master | 2020-04-05T23:45:16.562022 | 2014-01-28T14:45:52 | 2014-01-28T14:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | #!/usr/bin/env python
import sys, os
import random
import time
import math
from collections import defaultdict
from operator import itemgetter
from object.textual_features_concat import get_next_concat_TF_weighted
from metrics.term_freq import compute_FF_and_train_length, compute_TS
from metrics.cooccur import comput... | [
"infsaulok@gmail.com"
] | infsaulok@gmail.com |
38eda1c03fac7753d07cce611e24ce538fed844e | 69c1e3b0fcb12839c820cff744bf492546b2dbf7 | /func.py | 7f360613f39cf79bc62ec90376538283e359602b | [] | no_license | 260734/260734 | 71d844ae3032a762d8a96f3052df3a7ba4b0f844 | 40c02327ff82ad89d3583595913460f245f5ca77 | refs/heads/master | 2023-04-17T08:20:42.848803 | 2021-04-26T19:50:39 | 2021-04-26T19:50:39 | 359,469,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def square(x):
return x * x
def cube(x):
return x * x * x
# create a dictionary of functions
funcs = {
'square': square,
'cube': cube,
}
x = 2
for func in sorted(funcs):
print(func, funcs[func](x)) | [
"sanskarsinha1999@gmail.com"
] | sanskarsinha1999@gmail.com |
bcfb6f9b225d1c484807d73d6dfb6de1603ce7c4 | 0bf6b634267f02c04c6fb4ab276b26498cde8ca4 | /payapp/payapp/settings.py | 6db1a918dcfd038e4563950e39dd1e4c9aed570e | [] | no_license | danielmcv/Paynom | dde328fbdf818b35b1004372304d40f3663b10a5 | 5b489ab8b66bd8d0693af0ad0ad69df05a6993d0 | refs/heads/master | 2021-01-10T12:47:57.607374 | 2015-10-04T16:55:24 | 2015-10-04T16:55:24 | 43,643,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | """
Django settings for payapp project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"daneil625@outlook.com"
] | daneil625@outlook.com |
44be46ea1085141780882e156c30d8eab17a15da | bb8cc28951ee8dd94f98db23024c76059129f1df | /modelo/tipoSolicitud.py | 2ee3a07efaf4d76f8e99d7f49a31f625d2365c66 | [] | no_license | jhonn2002/PQR_Municipio | 1021d119113296acdd5ba87e038f2ba486fd2bd1 | 39e874d08a3f8f79b92e037342aed5dac0988c21 | refs/heads/master | 2023-09-01T02:37:22.639579 | 2021-10-13T00:37:59 | 2021-10-13T00:37:59 | 416,543,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from app import bd
class TipoSolicitud(bd.Model):
__tablename__ = 'tiposolicitud' #Nombre de la tabla
idTipoSolicitud = bd.Column(bd.Integer, primary_key=True, autoincrement=True)
tipoSolicitud = bd.Column(bd.String(30),nullable=False)
def __repr__(self):
return f'{self.tipoSolicitud}'
... | [
"viandregarcia@hotmail.com"
] | viandregarcia@hotmail.com |
717a32ee923895084358b984f07330c001396344 | 1aa015c1d08a4cba09ce749cfe325e996039459c | /Pygame Tutorial/TuterForBook04.py | ec3cacb39832a8e21245de3de37c82d8be4e9dde | [] | no_license | Jerrykim91/Pygame_Study | 98e9494e661d42229b7e0118095bf9d8636e266e | 6b8fe0ee239d2f90447a5b09bb742323677dfec5 | refs/heads/master | 2022-03-10T18:19:42.281581 | 2019-11-15T19:34:22 | 2019-11-15T19:34:22 | 216,942,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | # ๊ฒ์์ผ๋ก ๋ฐฐ์ฐ๋ ํ์ด์ฌ ๊ต์ฌ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ค์ต
""" draw_ lines0.py"""
# import
import pygame
import sys
import random
from pygame.locals import QUIT
# ์ด๊ธฐํ
pygame.init()
# ๋ณ์
SCREEN_W, SCREEN_H = 400, 300
# x, y = [0, 0]
# ์ฌ๋ฌ๊ฐ์ง ์
# 0-255 ( R, B, G )
RED = 255, 0, 0 # ์ ์: ์ 255, ๋
น 0, ์ฒญ 0
GREEN = 0, 255, 0 ... | [
"noreply@github.com"
] | Jerrykim91.noreply@github.com |
ff9215c8ec6c96e42f17608f62f9dce1cdd08011 | 2a7216df71b9ccf62050eb5197ed9e8279a2f2b2 | /codeforces/CODEFORCES_1189_B.py | 6c5ebbbd07378cbb3b42d77a6f5665bfa86f6f92 | [] | no_license | atarw/programming-contest-solutions | d8b9cd109630a383b762ab379011c5d8f7235ef8 | 8306b6871f221322e056b191e930862ea4990c55 | refs/heads/master | 2021-01-23T22:16:00.388134 | 2020-02-09T21:45:35 | 2020-02-09T21:45:35 | 58,693,100 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/python
from __future__ import division
from sys import stdin, stdout, maxint
from fractions import Fraction
import bisect, collections, heapq, itertools, operator, math
N = int(stdin.readline())
arr = sorted(map(int, stdin.readline().split()))
dq = collections.deque()
dq.append(arr[N - 1])
n = N - 2
left ... | [
"atarw11@outlook.com"
] | atarw11@outlook.com |
3701dcb0526d0abec2a1850baf3176ed362ec0d1 | d0eb582894eff3c44e3de4bd50f571f9d9ab3a02 | /venv/lib/python3.7/site-packages/flake8/plugins/pyflakes.py | 018d1c98a1f847fa743d847fa6d66a99ac4dbc0c | [
"MIT"
] | permissive | tdle94/app-store-scrapper | 159187ef3825213d40425215dd9c9806b415769e | ed75880bac0c9ef685b2c1bf57a6997901abface | refs/heads/master | 2022-12-20T21:10:59.621305 | 2020-10-28T00:32:21 | 2020-10-28T00:32:21 | 247,291,364 | 1 | 2 | MIT | 2022-12-08T03:53:08 | 2020-03-14T14:25:44 | Python | UTF-8 | Python | false | false | 6,021 | py | """Plugin built-in to Flake8 to treat pyflakes as a plugin."""
# -*- coding: utf-8 -*-
from __future__ import absolute_import
try:
# The 'demandimport' breaks pyflakes and flake8.plugins.pyflakes
from mercurial import demandimport
except ImportError:
pass
else:
demandimport.disable()
import os
from typ... | [
"tuyenle@Admins-MacBook-Pro.local"
] | tuyenle@Admins-MacBook-Pro.local |
17c9da42b3a256243f283d9d0204ada064184eb8 | aa4e8b335b6bd3041f91493115aae71af475ca6f | /server/activities/migrations/0003_auto__add_field_geospatial_point__add_field_geospatial_radius__add_fie.py | a7c2bbe2c551b977dea89c73bda5b85c4da630c3 | [] | no_license | CulturePlex/DrGlearning | 565165687544eda9b524f4b6ee7477fe017cd16a | 1949ae23f76d9858e9ef3b529035b4a15c1dc5d3 | refs/heads/master | 2021-03-30T16:13:06.814365 | 2014-07-01T22:41:32 | 2014-07-01T22:41:32 | 2,485,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,955 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Geospatial.point'
db.add_column('activities_geospatial', 'point', self.gf('django.contrib.... | [
"escalant3@gmail.com"
] | escalant3@gmail.com |
5f7476e24a204be9844348f8f59e7887e624cd82 | 3d4692d7853896a421524ca1beb238ee6179db7b | /version.py | 51668005651c6c2ea9b96f57dc22e44839b15e1b | [
"MIT"
] | permissive | H2Owater425/apacheLog | c1592d963808c59a64b7cdc96aa39e0feb175a32 | 5aecd4b549bdc958182b9db078c9548e0f9488cf | refs/heads/main | 2023-02-28T16:54:29.856558 | 2021-02-11T12:52:26 | 2021-02-11T12:52:26 | 333,651,219 | 2 | 0 | MIT | 2021-02-11T11:43:55 | 2021-01-28T05:04:12 | Python | UTF-8 | Python | false | false | 25 | py | __version__ = "2020.12.1" | [
"h2o@h2owr.xyz"
] | h2o@h2owr.xyz |
5a1e071972d89f69b241aff120e8fcd705ae1ca1 | cc0d06e2aad3d30152c4a3f3356befdc58748313 | /2.til8.oktober/plot_wavepacket.py | a4583b0987077f652a46aaf25eff8dbe8cd4c6bb | [] | no_license | lasse-steinnes/IN1900 | db0bb4da33fa024d4fe9207337c0f1d956197c50 | c8d97c2903078471f8e419f88cc8488d9b8fc7da | refs/heads/master | 2020-12-14T15:34:36.429764 | 2020-01-18T19:59:46 | 2020-01-18T19:59:46 | 234,789,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | ###
## Definerer funksjonen
from numpy import exp, sin, pi, linspace
bรธlge = lambda x,t=0: exp(-(x-3*t)**2)*sin(3*pi*(x-t))
## Lager intervallet for x
x_matrise = linspace(-4,4,1500)
# Slik at
bรธlge_t0 = bรธlge(x_matrise)
### Plotter funksjonen
import matplotlib.pyplot as plt
plt.plot(x_matrise, bรธlge_t0, label = '... | [
"lasse.steinnes93@gmail.com"
] | lasse.steinnes93@gmail.com |
180106f795f970567cbc895131bf67dc5169a9ab | 4fbfabe70290b5b32a2235c17d0a98a3f9f67dab | /codingdojochallenge/forms.py | f7cca509e8b8df263c23e90480b8b03ea30f9586 | [] | no_license | joshgendal/coding-dojo-challenge | e06ff8a4e2f7178cc5e6a7173bfac34b74d70416 | a8900b9b46fd7c6f23ecf01b6c5b2461ef18500a | refs/heads/main | 2023-02-14T14:29:14.003040 | 2021-01-08T23:13:06 | 2021-01-08T23:13:06 | 327,711,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from django import forms
from codingdojochallenge.models import Shows
class ShowForm(forms.Form):
title = forms.CharField(widget=forms.TextInput(attrs={
'class': 'form-control',
'name': 'title',
'id': 'title-input'
}))
date = forms.DateField(widget=forms.DateInput(attrs={
'c... | [
"joshuagendal@Joshuas-MacBook-Pro.local"
] | joshuagendal@Joshuas-MacBook-Pro.local |
603cf7453561a065dc33a3f333ab5627734fc5ed | 3fbd92b1eed0f81e8f06ab4595fa64b40dfbdac5 | /RNN_R.py | 9c5d5d5880847eca9d99af3934730643f2cf84af | [] | no_license | Lanclaw/TakeItEasy | a56e64b3160bce4798fd5afa5b41c15fa827476d | 0373313000fecf39f56e65dd4b20cc8a384b572d | refs/heads/main | 2023-03-25T06:07:17.047320 | 2021-03-28T02:44:11 | 2021-03-28T02:44:11 | 351,967,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import torch
from torch import nn
import numpy as np
import matplotlib.pyplot as plt
TIME_STEP = 10
INPUT_SIZE = 1
LR = 0.02
class RNN(nn.Module):
def __init__(self):
super(RNN, self).__init__()
self.rnn = nn.RNN(
input_size=INPUT_SIZE,
hidden_size=32,
num_laye... | [
"3423406675@qq.com"
] | 3423406675@qq.com |
620cd2171907d5b1e5e1ef3c3d3379f91f34ad8e | 54564fcd4205990d5610f39dcb0e3a778037591d | /data_plotting.py | f34746099759f8f86a409e9809ede5cf771f9af8 | [] | no_license | amishasacheti/Sign-Language-Recognition-using-SVM | bb50592016f6be37c8422a156679aa3c9c8a2663 | 42967d80338f2dcb80c659a1f2d858866c08bc06 | refs/heads/master | 2022-11-16T12:56:24.808663 | 2020-07-16T18:31:51 | 2020-07-16T18:31:51 | 270,957,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | #display dataset in 3D
#STEP 1
import pandas as pd
import numpy as np
import math
from mpl_toolkits import mplot3d
%matplotlib inline
import matplotlib.pyplot as plt
data= np.loadtxt('D:\\final sem project\\dataset of coordinates\\1-hand_gestures\\afternoon_apurve_7.txt')
count=len(data)
bone_list = [[1, 2],[2,3],[2,4... | [
"noreply@github.com"
] | amishasacheti.noreply@github.com |
b5b4c7d2a0e719279f2d3cd706e2f3a26b838bf8 | d1fef4482a1a4cb7fb22b6fe9b45e6cf1657c001 | /conf.py | 67931dec10ce25557f2638a398ec6cd7e55f167b | [] | no_license | Voljega/BestArcade | a80b15785899115984e6874e85c9808a57c8b138 | a1498af1ea9a62008af3429feec20b6953f35d46 | refs/heads/master | 2023-06-22T08:07:37.007691 | 2023-06-17T21:24:43 | 2023-06-17T21:24:43 | 217,221,075 | 57 | 5 | null | null | null | null | UTF-8 | Python | false | false | 416 | py |
def cleanString(string):
return string.rstrip('\n\r ').lstrip()
def loadConf(confFile):
conf = dict()
file = open(confFile, 'r', encoding="utf-8")
for line in file.readlines():
if not line.startswith('#'):
confLine = line.split("=")
if len(confLine) == 2:
... | [
"voljega@gmail.com"
] | voljega@gmail.com |
1d0479b10748363c8598f680dd8ac691974f0c9e | 11060ca244940baef96a51d794d73aab44fc31c6 | /src/brainstorming/tornado/modbus/pymodbus/__init__.py | 0bb3d9b53e2360b44fb5246e72a6c065e1fdb427 | [] | no_license | D3f0/txscada | eb54072b7311068a181c05a03076a0b835bb0fe1 | f8e1fd067a1d001006163e8c3316029f37af139c | refs/heads/master | 2020-12-24T06:27:17.042056 | 2016-07-27T17:17:56 | 2016-07-27T17:17:56 | 3,565,335 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | """
Pymodbus: Modbus Protocol Implementation
-----------------------------------------
This package can supply modbus clients and servers:
client:
- Can perform single get/set on discretes and registers
- Can perform multiple get/set on discretes and registers
- Working on diagnostic/file/pipe/setting/info requets
-... | [
"devnull@localhost"
] | devnull@localhost |
43cb69f938df1aeaba48532ef98b1d4c606e5a2e | a68b6c704dcbe6d54001ca796f13020290ed265d | /src/database.py | 8f5cc548df9a757c7759d087fb8dac85ab23a2b9 | [] | no_license | Rescura/cmbsoftware | 9e9fa8b060673b3ae7472c6ea3cceed3cffb8c0e | c506ad3ccd52ae1fc29ba7ad9060d74f81d1ab3b | refs/heads/master | 2022-12-02T05:04:13.595497 | 2020-03-19T13:11:18 | 2020-03-19T13:11:18 | 283,223,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | py | import sqlite3
import datetime as dt
import re, math
def returnTime(f_format:str):
"""
ํ์ฌ ์๊ฐ์ ๋ฐํํ๋ค.
f_formatํํ์ string์ผ๋ก ํ์ฌ ์๊ฐ์ ๋ฐํํ๋ค.
*f_format %Y%m%d %H:%M:%S -> YYYYMMDD HH:MM:SS
"""
d = dt.datetime.today()
dateStr = d.strftime(f_format)
day = dateStr[6:9]
return{
'Sun' :... | [
"ayj604516@gmail.com"
] | ayj604516@gmail.com |
5b8fdc45ed8189fd3a68129d873b5311ea37df1f | 8fda41bac0be880a7918440e555b6fc2e0afd626 | /strmultislice.py | 2be4f39e102a39a43b75a6f85d56d5ec701ce12a | [] | no_license | clarkjoypesco/pythonmultislicestring | c06123327af6b2872082bb45f9e55a57fa810ceb | 8a24a63fda14b28e5b0ab720fbca9d13ccc2d5ec | refs/heads/master | 2020-05-07T00:56:27.679478 | 2019-04-09T00:15:01 | 2019-04-09T00:15:01 | 180,251,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Use string slicing to store everything before "NOUN" in substring1,
# everything after "NOUN" and before "VERB" in substring2, and everything after "VERB"
# in substring3.
sentence = "A NOUN went on a walk. It can VERB really fast."
substring1 = sentence[:2]
print substring1
substring2 = sentence[6:30]
print substr... | [
"clarkjoypesco@yahoo.com"
] | clarkjoypesco@yahoo.com |
6952776e38f65ecbbae62a609f1e5ea29c6d4d7f | e40ecfc9628c2de1787cc0eceabf2543c553a22f | /app/oc_website/management/commands/parse_anidb.py | 74d4c09b781d6d87821b5d86a71fae37cf105785 | [] | no_license | old-castle-fansubs/website | 27975ba7c603d44b3c6b8cb9c5d78cda0793057c | d2ecf45fbedf2ea873d3a3a3629c77af7a740429 | refs/heads/master | 2023-02-17T01:01:12.540371 | 2022-12-16T12:54:40 | 2022-12-16T13:59:57 | 163,497,607 | 0 | 0 | null | 2023-02-15T19:35:32 | 2018-12-29T09:27:18 | Python | UTF-8 | Python | false | false | 783 | py | from django.core.management.base import BaseCommand
from oc_website.models import AniDBEntry
from oc_website.tasks.anidb import fill_missing_anidb_info
class Command(BaseCommand):
help = "Reanalyzes AniDB response for a given ID."
def add_arguments(self, parser):
parser.add_argument(
"id... | [
"dash@wind.garden"
] | dash@wind.garden |
ecd8d07132fc023bd95ecb028e217314c73808bb | 45846afd99534f4282bf7eac24de37e9b470f603 | /Task4_HSV_Red_Tracker.py | 346cb18230c06ccd319cbab12563b5e3cac626a9 | [] | no_license | therealhuy/180DA-WarmUp | e27c44fe2bb205badcdf6f4eac89d61a0c07ffd8 | 94700c1e9003b9790af73c2d8448f0f85d0c1f3d | refs/heads/main | 2023-01-10T13:11:33.113062 | 2020-11-12T20:59:43 | 2020-11-12T20:59:43 | 300,744,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | '''
This file tracks red objects (in this case I'm using a Tesla bookmark)
The following code is adapted from the OpenCV tutorials (changing color space)
and contours in particular. Drawing the bounding boxes was taken from
stackoverflow, the tutorial was confusing me. Makes sense what s/he did.
Modified it to work whe... | [
"32783643+therealhuy@users.noreply.github.com"
] | 32783643+therealhuy@users.noreply.github.com |
a141044c46de5b0d1469335d2402696d27fdae35 | 05bc43b15ed5d7b8fcc58791d6a1746800c20268 | /lib/dataset.py | f441c7f3ad0b20731dd196abeb0ff09f41325dbf | [
"MIT"
] | permissive | daveredrum/Pointnet2.ScanNet | 521b7cc75b4a06eb1fcf2ac7665acd4b414e27f3 | f4adc43779aaaefd6138d37183a94185d0718865 | refs/heads/master | 2022-02-12T14:07:38.239629 | 2021-12-21T10:10:54 | 2021-12-21T10:10:54 | 196,842,335 | 113 | 22 | null | null | null | null | UTF-8 | Python | false | false | 15,328 | py | import os
import sys
import time
import h5py
import torch
import numpy as np
import multiprocessing as mp
from tqdm import tqdm
from prefetch_generator import background
sys.path.append(".")
from lib.config import CONF
class ScannetDataset():
def __init__(self, phase, scene_list, num_classes=21, npoints=8192, is_... | [
"davech2y@outlook.com"
] | davech2y@outlook.com |
e12591f9ecc1c8fed16803eb18ce0eecbd9e27a2 | a5a05ad635d0af5ad97d7a39e1851fc6d4f14d16 | /app/models/City.py | 57774b71668f18cf2b9ebaf779ba76c5992d71b7 | [] | no_license | zyqingning/flask_crud-master | a43a625dcbd0dd51c65de8beec19747b00109210 | 51af3fa8e1582aa67f07b9b46e601d553deb0a55 | refs/heads/master | 2023-02-04T14:11:22.064669 | 2020-03-08T14:57:35 | 2020-03-08T14:57:35 | 245,834,017 | 0 | 0 | null | 2023-02-02T05:59:33 | 2020-03-08T14:56:51 | HTML | UTF-8 | Python | false | false | 449 | py | from sqlalchemy import Column, Integer,String,VARCHAR
from app.models.Base import Base
class City(Base):
id = Column(Integer(11), primary_key=True)
city_name = Column(VARCHAR(24), nullable=False)
pid = Column(Integer(11), nullable=False)
deep = Column(Integer(2), nullable=False)
pinyin = Column(V... | [
"13340220686@163.com"
] | 13340220686@163.com |
0c1d705b8afb40aed5e9d84199de73a1d02a6882 | a7d65be2d28290cd7c7ce2b2a394d01db48c9f6a | /PlexHey/migrations/0014_remove_profile_driving.py | bede856c7f610beab70baaec1d4715f014f01bf8 | [] | no_license | okenyurimachage/Hyplex | bbbe417ca478f94b1c0e9cc0fbf49e0c718fff44 | 972b8400d6e9319e28d2d15b23f3a0b0cc8bd10e | refs/heads/master | 2023-01-22T06:11:23.350458 | 2021-09-21T06:26:36 | 2021-09-21T06:26:36 | 189,965,879 | 1 | 1 | null | 2023-01-10T23:16:16 | 2019-06-03T08:31:48 | JavaScript | UTF-8 | Python | false | false | 324 | py | # Generated by Django 2.1.7 on 2019-06-13 20:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('PlexHey', '0013_booking_paid'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='Driving',
),
... | [
"josephinemachage71@gmail.com"
] | josephinemachage71@gmail.com |
d79b27996f9bf2eba24a2b437fc7fa50f14daa8a | 3990af3b0f5ea1597ffb6e58530d185127790ade | /example_cBioF_usage/TPOT_pipeline_MO.py | 88f8af42eebe792338eb72d0b169acd6c5277ca4 | [] | no_license | TimBeishuizen/cBioF | 47e0ddc540dfbd44346b7cf4323130b38147db2d | f8ef965ad904e72157527f258bdc7760a795b99a | refs/heads/master | 2020-03-30T16:01:19.879298 | 2018-10-16T08:43:02 | 2018-10-16T08:43:02 | 151,389,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesClassifier, RandomForestClassifier
from sklearn.feature_selection import RFE, SelectPercentile, f_classif
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline, make_union
from sklearn.preprocessing i... | [
"timbeishuizen@hotmail.com"
] | timbeishuizen@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.