hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73273b53693f5cfdd4ac973e666f3ace8295f542 | 3,311 | exs | Elixir | lib/elixir/test/elixir/gen_server_test.exs | gsphanikumar/elixir | 6ca225da4e016200a462888348ff1c3feb625b78 | [
"Apache-2.0"
] | 4 | 2015-12-22T02:46:39.000Z | 2016-04-26T06:11:09.000Z | lib/elixir/test/elixir/gen_server_test.exs | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/gen_server_test.exs | alco/elixir | 4407170349aa12c58664cab2122374167e827f5e | [
"Apache-2.0"
] | null | null | null | Code.require_file "test_helper.exs", __DIR__
defmodule GenServerTest do
use ExUnit.Case, async: true
defmodule Stack do
use GenServer
def handle_call(:pop, _from, [h|t]) do
{:reply, h, t}
end
def handle_call(request, from, state) do
super(request, from, state)
end
def handle... | 29.300885 | 81 | 0.618242 |
73276e7cc7e6b7a51ce86fb7078ce3d049c46e35 | 906 | exs | Elixir | config/dev.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-11-03T02:08:43.000Z | 2021-11-03T02:08:43.000Z | config/dev.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 171 | 2020-07-08T18:42:57.000Z | 2022-03-23T00:55:30.000Z | config/dev.exs | kuma/teslamate | ea175fddb49cc08070182455e0073c3dcfcb3b4c | [
"MIT"
] | 1 | 2021-03-26T15:46:37.000Z | 2021-03-26T15:46:37.000Z | import Config
config :teslamate, TeslaMateWeb.Endpoint,
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: [
node: [
"node_modules/webpack/bin/webpack.js",
"--mode",
"development",
"--stats-colors",
"--watch",
"--watch-options-stdin",
cd: Path.... | 25.885714 | 80 | 0.639073 |
7327f9775d24fe0cd29b85c84f1b27aad4712f67 | 6,576 | ex | Elixir | lib/fika/compiler/erl_translate.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 220 | 2020-09-12T18:16:29.000Z | 2022-03-15T14:39:05.000Z | lib/fika/compiler/erl_translate.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 60 | 2020-09-23T14:20:36.000Z | 2021-03-08T08:55:57.000Z | lib/fika/compiler/erl_translate.ex | fika-lang/fika | 15bffc30daed744670bb2c0fba3e674055adac47 | [
"Apache-2.0"
] | 25 | 2020-09-19T09:06:10.000Z | 2021-08-24T23:48:39.000Z | defmodule Fika.Compiler.ErlTranslate do
def translate(ast, module_name_str, file) do
line = 1
file = String.to_charlist(file)
module_name = erl_module_name(module_name_str)
module_header = [
{:attribute, line, :file, {file, line}},
{:attribute, line, :module, module_name}
]
func... | 28.591304 | 86 | 0.604471 |
732841904f8347fd49b2a6b317ffd6e2f8102083 | 6,930 | ex | Elixir | core/handler/websocket_state.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 144 | 2018-04-27T07:24:49.000Z | 2022-03-15T05:19:37.000Z | core/handler/websocket_state.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 123 | 2018-05-01T02:54:43.000Z | 2022-01-28T01:30:52.000Z | core/handler/websocket_state.ex | sylph01/antikythera | 47a93f3d4c70975f7296725c9bde2ea823867436 | [
"Apache-2.0"
] | 14 | 2018-05-01T02:30:47.000Z | 2022-02-21T04:38:56.000Z | # Copyright(c) 2015-2021 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.Handler.WebsocketState do
alias Antikythera.{Time, Conn, Context, ErrorReason}
alias Antikythera.Websocket
alias Antikythera.Websocket.{Frame, FrameList}
alias Antikythera.Context.GearEntryPoint
alias Antikyth... | 32.535211 | 98 | 0.632756 |
73286125b0c0ebcbdcb7ec2d391b34607951d4aa | 2,728 | ex | Elixir | lib/scenic/primitive/text.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/text.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | lib/scenic/primitive/text.ex | bruceme/scenic | bd8a1e63c122c44cc263e1fb5dfab2547ce8ef43 | [
"Apache-2.0"
] | null | null | null | #
# Created by Boyd Multerer on 2017-05-06.
# Copyright © 2017-2021 Kry10 Limited. All rights reserved.
#
defmodule Scenic.Primitive.Text do
@moduledoc """
Draw text on the screen.
## Data
`text`
The data for a Text primitive is a bitstring
* `text` - the text to draw
## Styles
This primitive re... | 26.745098 | 97 | 0.616935 |
7328aa17bfcdc6861d95e14634fadb2cf861f8e9 | 540 | exs | Elixir | config/config.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 12 | 2019-08-30T19:10:54.000Z | 2022-03-19T13:53:19.000Z | config/config.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 19 | 2019-03-06T17:28:11.000Z | 2020-02-18T17:00:28.000Z | config/config.exs | hippware/wocky_queue | 45e7121245525763fb4ca90cb22d476a55eaa952 | [
"MIT"
] | 2 | 2019-12-17T12:51:20.000Z | 2021-10-14T18:21:02.000Z | use Mix.Config
if Mix.env() == :test do
config :dawdle, start_pollers: true
config :dawdle_db, ecto_repos: [DawdleDB.Repo]
config :dawdle_db, DawdleDB.Repo,
database: {:system, "DAWDLEDB_DB_DATABASE", "dawdle_db_test"},
username: {:system, "DAWDLEDB_DB_USERNAME", "postgres"},
password: {:system, "D... | 30 | 66 | 0.716667 |
7328bb72e7a91508eb4316e2bf689154acd1976a | 1,560 | ex | Elixir | projects/api/lib/margaret_web/schema/followable_types.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 82 | 2017-11-06T01:00:55.000Z | 2020-12-09T10:35:29.000Z | projects/api/lib/margaret_web/schema/followable_types.ex | dbstratta/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 98 | 2017-11-06T22:57:32.000Z | 2020-07-03T04:46:39.000Z | projects/api/lib/margaret_web/schema/followable_types.ex | strattadb/margaret | dde5d7b42f6d9b4d320069a0117136dae03b13b5 | [
"MIT"
] | 10 | 2017-11-16T05:31:58.000Z | 2020-10-29T18:02:35.000Z | defmodule MargaretWeb.Schema.FollowableTypes do
@moduledoc """
The Followable GraphQL interface.
"""
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema.Notation, :modern
alias MargaretWeb.Resolvers
@followable_implementations [
:user,
:publication
]
interface :followable do
field(:... | 25.57377 | 95 | 0.703846 |
7328d4cddc2c44c91f4eaf93a650865297fe619b | 1,847 | ex | Elixir | lib/xml_json/aws_api/deserializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T06:49:02.000Z | 2020-10-29T16:24:20.000Z | lib/xml_json/aws_api/deserializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T12:15:38.000Z | 2021-06-01T18:15:31.000Z | lib/xml_json/aws_api/deserializer.ex | MathiasWedeken/xml_json | 772f110987501e1f0d8065311110069c1f4e0a20 | [
"MIT"
] | 2 | 2020-10-08T11:56:39.000Z | 2021-06-01T16:42:43.000Z | defmodule XmlJson.AwsApi.Deserializer do
@moduledoc """
AWS implementation for deserialization from a Xml into Map
"""
alias XmlJson.SaxHandler
@spec deserialize(binary(), map()) :: {:ok, map()} | {:error, Saxy.ParseError.t()}
def deserialize(xml, opts) do
case SaxHandler.parse_string(xml) do
{:... | 25.652778 | 84 | 0.644288 |
7328f72e8106257b31cde3fef0c6d7902f9b34e7 | 239 | exs | Elixir | test/controllers/band_controller_test.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | test/controllers/band_controller_test.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | test/controllers/band_controller_test.exs | retgoat/band-indigo.com | b8a1cf58ec766858cc2319441fa8628ad763529a | [
"MIT"
] | null | null | null | defmodule BandIndigo.BandControllerTest do
use BandIndigo.ConnCase
test "GET /" do
conn = get conn(), "/band"
assert html_response(conn, 200) =~ "Indigo is an instrumental playing band based in Novosibirsk, Russia."
end
end
| 26.555556 | 109 | 0.723849 |
7328fe635d36f7459a16deae0386d739bdf90a77 | 114 | exs | Elixir | test/grexst_test.exs | maxbeizer/grexst | 15151ab138098c68ca77d38d38f1e14f803e04d5 | [
"MIT"
] | null | null | null | test/grexst_test.exs | maxbeizer/grexst | 15151ab138098c68ca77d38d38f1e14f803e04d5 | [
"MIT"
] | null | null | null | test/grexst_test.exs | maxbeizer/grexst | 15151ab138098c68ca77d38d38f1e14f803e04d5 | [
"MIT"
] | null | null | null | defmodule GrexstTest do
use ExUnit.Case
doctest Grexst
test "the truth" do
assert 1 + 1 == 2
end
end
| 12.666667 | 23 | 0.666667 |
73291781ba976fb63e76aa4cc9c71fe51f1e3fab | 2,000 | ex | Elixir | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_runtime_trace_sampling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_runtime_trace_sampling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_runtime_trace_sampling_config.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.461538 | 240 | 0.7515 |
7329287fa1ac0db9e807493e14b09c9312865610 | 1,617 | ex | Elixir | apps/idp/src/idp/accounts/account_forms.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp/src/idp/accounts/account_forms.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | apps/idp/src/idp/accounts/account_forms.ex | lbrty/idp-backend | 81d5f10ef6177a1e678b994331c5a09abbdca8d6 | [
"Apache-2.0"
] | null | null | null | defmodule Idp.Accounts.AccountForms do
use Idp.Base.Model
use Idp.Base.Query
alias Idp.Accounts.User
alias Idp.Validators
@password_min_length Application.get_env(:idp, :password_min_length)
def base(%User{} = user, attrs) do
fields = ~w(email full_name is_active is_admin)a
user
|> cast(att... | 25.666667 | 79 | 0.672851 |
7329304d13164f5911f33a2e84e78167c9d0284b | 700 | ex | Elixir | lib/andy/platforms/mock_rover/ultrasonic_sensor.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 7 | 2019-05-29T22:55:25.000Z | 2021-08-22T18:38:29.000Z | lib/andy/platforms/mock_rover/ultrasonic_sensor.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | null | null | null | lib/andy/platforms/mock_rover/ultrasonic_sensor.ex | jfcloutier/andy | 74b93f734d6f6353356041a603a96ad5aed4b5dc | [
"MIT"
] | 1 | 2020-01-25T20:46:43.000Z | 2020-01-25T20:46:43.000Z | defmodule Andy.MockRover.UltrasonicSensor do
@moduledoc "A mock ultrasonic sensor"
@behaviour Andy.Sensing
alias Andy.Device
# actual max is 250 cms
@max_distance 250
def new(port) do
%Device{
mod: __MODULE__,
class: :sensor,
port: port,
path: "/mock/ultrasonic_sensor",
... | 15.909091 | 44 | 0.637143 |
73293d9ec6331e6ab40f8b46614745627cb0c1f2 | 115 | ex | Elixir | test/support/repo.ex | skeleton-elixir/skeleton_soft_delete | b8333a6b67bd65a7f02a7c9826418095e66ce5c5 | [
"MIT"
] | 2 | 2020-10-01T22:41:35.000Z | 2020-10-01T23:01:34.000Z | test/support/repo.ex | skeleton-elixir/skeleton_soft_delete | b8333a6b67bd65a7f02a7c9826418095e66ce5c5 | [
"MIT"
] | 4 | 2020-06-27T20:13:11.000Z | 2021-02-20T20:04:14.000Z | test/support/repo.ex | skeleton-elixir/skeleton_soft_delete | b8333a6b67bd65a7f02a7c9826418095e66ce5c5 | [
"MIT"
] | null | null | null | defmodule Skeleton.App.Repo do
use Ecto.Repo, otp_app: :skeleton_soft_delete, adapter: Ecto.Adapters.Postgres
end | 38.333333 | 80 | 0.817391 |
73294629f6ed8c277645f5128a30a3743ef859cf | 126 | exs | Elixir | apps/repositories/test/repositories_test.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | apps/repositories/test/repositories_test.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | apps/repositories/test/repositories_test.exs | dcbartlett/exFACI | ab8ba1c9490dbe22960d4241434452ba0f55f4ef | [
"MIT"
] | null | null | null | defmodule RepositoriesTest do
use ExUnit.Case
doctest Repositories
test "the truth" do
assert 1 + 1 == 2
end
end
| 14 | 29 | 0.698413 |
73294b635ee205f60ae007e2e5daea2b0b0b801a | 95 | exs | Elixir | config/config.exs | floriank/cloudflare_access | a61abce429929237e93b71fb6bd478e07e9c903b | [
"MIT"
] | null | null | null | config/config.exs | floriank/cloudflare_access | a61abce429929237e93b71fb6bd478e07e9c903b | [
"MIT"
] | null | null | null | config/config.exs | floriank/cloudflare_access | a61abce429929237e93b71fb6bd478e07e9c903b | [
"MIT"
] | null | null | null | use Mix.Config
if Mix.env() == :test do
config :cloudflare_access, :domain, "duksis.lv"
end
| 15.833333 | 49 | 0.694737 |
73296227507dff6243ea177f23fec1e1fc1573ea | 2,368 | ex | Elixir | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_log_entry_operation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_log_entry_operation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/private_ca/lib/google_api/private_ca/v1beta1/model/google_api_servicecontrol_v1_log_entry_operation.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.819672 | 263 | 0.720439 |
73297066342575eee92df5623312fe1d1ad8ce6e | 3,921 | exs | Elixir | spec/hamlex/node/element_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/hamlex/node/element_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | spec/hamlex/node/element_spec.exs | marnen/hamlex | 38322997b12972f60a16d40e44f81d0c178e2523 | [
"MIT"
] | null | null | null | defmodule Hamlex.Node.ElementSpec do
use ESpec
import Hamlex.Node.Element
alias Hamlex.Node.Element
describe ".to_html" do
context "name given" do
it "renders a tag of the given name" do
expect(to_html %Element{name: "foo", selectors: [".bar"]}).to eq "<foo class='bar'></foo>"
end
e... | 33.512821 | 120 | 0.547564 |
732976c4b322e3e316cba8d559b2e753adad600b | 427 | ex | Elixir | lib/hap/characteristics/occupancy_detected.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 40 | 2019-10-26T01:58:42.000Z | 2022-03-09T18:18:39.000Z | lib/hap/characteristics/occupancy_detected.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 11 | 2021-04-02T14:55:02.000Z | 2021-11-05T13:49:55.000Z | lib/hap/characteristics/occupancy_detected.ex | petermm/hap | 550433a78bccd586ab6a7d8bf85765bfae58b13b | [
"MIT"
] | 6 | 2020-05-18T09:34:14.000Z | 2021-11-04T11:14:15.000Z | defmodule HAP.Characteristics.OccupancyDetected do
@moduledoc """
Definition of the `public.hap.characteristic.occupancy-detected` characteristic
Valid values:
0: Occupancy is not detected
1: Occupancy is detected
"""
@behaviour HAP.CharacteristicDefinition
def type, do: "71"
def perms, do: ["pr",... | 22.473684 | 81 | 0.711944 |
73298527838706bd22d0ab0de2ca917cb95c7535 | 842 | ex | Elixir | lib/asciinema_web/views/layout_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/layout_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | lib/asciinema_web/views/layout_view.ex | potherca-contrib/asciinema-server | c5ac6e45e8f117d4d59c9c33da6b59b448e40f0e | [
"Apache-2.0"
] | null | null | null | defmodule AsciinemaWeb.LayoutView do
use AsciinemaWeb, :view
import AsciinemaWeb.UserView, only: [avatar_url: 1]
def page_title(conn) do
case conn.assigns[:page_title] do
nil -> "asciinema - Record and share your terminal sessions, the right way"
title -> title <> " - asciinema" # TODO return saf... | 26.3125 | 81 | 0.643705 |
7329b845deba31bc5c886bc45c62191abcd444f2 | 1,323 | exs | Elixir | test/chunkr/page_test.exs | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 3 | 2021-09-15T13:21:37.000Z | 2021-10-14T06:07:49.000Z | test/chunkr/page_test.exs | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 2 | 2021-09-20T16:39:56.000Z | 2021-10-14T18:38:34.000Z | test/chunkr/page_test.exs | goodpixel/pager | d3ab68add7f7d08af1a80132e2981c802d446b5f | [
"MIT"
] | 1 | 2021-09-20T16:19:13.000Z | 2021-09-20T16:19:13.000Z | defmodule Chunkr.PageTest do
use ExUnit.Case, async: true
alias Chunkr.{Cursor, Opts, Page}
doctest Chunkr.Page
defmodule MockRepo do
def aggregate(User, :count) do
1_234_567
end
end
defp fake_page() do
opts = %Opts{repo: MockRepo, planner: SomeModule, query: User, cursor_mod: Cursor.Ba... | 27 | 96 | 0.670446 |
7329cfc52d489041bd660b925385cf547736241c | 5,468 | exs | Elixir | .credo.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | .credo.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | 132 | 2018-11-26T14:00:54.000Z | 2022-03-11T04:17:54.000Z | .credo.exs | arana3/reactive-interaction-gateway | 793648bcc5b8b05fc53df1f5f97818fb40ca84be | [
"Apache-2.0"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 42.061538 | 81 | 0.659108 |
7329d97448a2fc60d5ec2d074ed7ab7bf8ea3785 | 2,367 | ex | Elixir | lib/hexpm/parallel/process.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/parallel/process.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | lib/hexpm/parallel/process.ex | findmypast/hexfmp | 38a50f5e1057833fd98748faac230bf4b9cc26a3 | [
"Apache-2.0"
] | null | null | null | defmodule Hexpm.Parallel.Process do
use GenServer
require Logger
def reduce(fun, args, acc, reducer, opts) do
{:ok, pid} = GenServer.start_link(__MODULE__, new_state(opts))
try do
GenServer.call(pid, {:reduce, fun, args, reducer, acc}, opts[:timeout])
after
GenServer.stop(pid)
end
... | 25.180851 | 114 | 0.588086 |
7329e0979d81cdfa230047d3a2e7f74e2c874cbd | 2,555 | ex | Elixir | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_visual_element.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_visual_element.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/document_ai/lib/google_api/document_ai/v1beta3/model/google_cloud_documentai_v1beta2_document_page_visual_element.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.5 | 212 | 0.748337 |
7329eb25a7e81146018fa7c1aa99ba97bf4d043f | 1,270 | exs | Elixir | mix.exs | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 8 | 2020-08-06T03:08:31.000Z | 2021-12-15T08:41:59.000Z | mix.exs | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 1 | 2020-10-18T19:48:09.000Z | 2020-10-26T16:40:25.000Z | mix.exs | brndnmtthws/citrine | ff815f7ed921abbde658ca4ba7b6aea68b6c0f5f | [
"MIT"
] | 2 | 2020-10-23T12:28:21.000Z | 2021-01-09T20:44:37.000Z | defmodule Citrine.MixProject do
use Mix.Project
def project do
[
app: :citrine,
version: "0.1.12",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
# Docs
name: "Citrine",
source_ur... | 22.678571 | 82 | 0.56378 |
732a031655fd0e9301b12b30b1c3fd2965ad6ea8 | 377 | exs | Elixir | priv/repo/migrations/20151224015910_add_sample_models.exs | r-icarus/filtrex | 609239678226729d3dd5349a97e58762b671a0d9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20151224015910_add_sample_models.exs | r-icarus/filtrex | 609239678226729d3dd5349a97e58762b671a0d9 | [
"MIT"
] | null | null | null | priv/repo/migrations/20151224015910_add_sample_models.exs | r-icarus/filtrex | 609239678226729d3dd5349a97e58762b671a0d9 | [
"MIT"
] | 1 | 2020-08-04T21:11:18.000Z | 2020-08-04T21:11:18.000Z | defmodule Filtrex.Repo.Migrations.AddSampleModels do
use Ecto.Migration
def change do
create table(:sample_models) do
add :title, :string
add :date_column, :date
add :datetime_column, :datetime
add :upvotes, :integer
add :rating, :float
add :co... | 22.176471 | 52 | 0.591512 |
732a0cffe050fa56515636fb0a6b97917047180c | 1,518 | ex | Elixir | apps/omg_watcher/lib/eventer.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/eventer.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | apps/omg_watcher/lib/eventer.ex | SingularityMatrix/elixir-omg | 7db3fcc3adfa303e30ff7703148cc5110b587d20 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 29.192308 | 107 | 0.731884 |
732a23bb0e85a416aaf0493b48329e0d074f0f77 | 1,842 | ex | Elixir | web/web.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 5 | 2016-08-30T01:23:50.000Z | 2021-09-22T14:39:00.000Z | web/web.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | null | null | null | web/web.ex | ntsai/xadmin | 82d8be63e69483ff66472481e66f9870face355b | [
"MIT"
] | 1 | 2021-12-10T11:10:55.000Z | 2021-12-10T11:10:55.000Z | defmodule XAdmin.Web do
@moduledoc false
def model do
quote do
use Ecto.Schema
import Ecto
import Ecto.Changeset
import Ecto.Query, only: [from: 1, from: 2]
end
end
def controller do
quote do
use Phoenix.Controller
import Ecto.Model
import Ecto.Query, on... | 21.172414 | 114 | 0.629207 |
732a307eb92c664ec3f6fb189cd6d6e5482ea40d | 972 | exs | Elixir | test/plug/payment_guard_test.exs | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | test/plug/payment_guard_test.exs | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | test/plug/payment_guard_test.exs | versus-systems/shopifex | 48b1e7e6b3b5cf31010097ad768325f783168124 | [
"Apache-2.0"
] | null | null | null | defmodule Shopifex.Plug.PaymentGuardTest do
use ShopifexWeb.ConnCase
setup do
conn = build_conn(:get, "/premium-route?foo=bar&fizz=buzz")
{:ok, conn: conn}
end
setup [:shop_in_session]
test "payment guard blocks pay-walled function and redirects to payment route", %{
conn: conn
} do
conn ... | 28.588235 | 104 | 0.695473 |
732a500f6a9023c2a3cf62648622f53b58daa1a8 | 70,122 | exs | Elixir | test/ecto/changeset_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 2 | 2021-02-25T15:51:16.000Z | 2021-02-25T18:42:35.000Z | test/ecto/changeset_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2021-03-09T16:43:23.000Z | 2021-03-09T16:43:23.000Z | test/ecto/changeset_test.exs | adbatista/ecto | ab63701cf9b3ceab6ddf54c87d549abe24e1248a | [
"Apache-2.0"
] | 1 | 2018-06-18T14:47:58.000Z | 2018-06-18T14:47:58.000Z | defmodule Ecto.ChangesetTest do
use ExUnit.Case, async: true
import Ecto.Changeset
defmodule SocialSource do
use Ecto.Schema
@primary_key false
embedded_schema do
field :origin
field :url
end
def changeset(schema \\ %SocialSource{}, params) do
cast(schema, params, ~w(origi... | 38.297105 | 167 | 0.634665 |
732a5a3aa7fa16bc6b6baef8bfc8f738598e86bc | 411 | ex | Elixir | lib/nkn_client/ws/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 2 | 2019-02-14T19:13:55.000Z | 2020-01-21T14:18:30.000Z | lib/nkn_client/ws/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 2 | 2020-02-03T10:51:19.000Z | 2020-04-12T10:13:23.000Z | lib/nkn_client/ws/supervisor.ex | termoose/nkn_client | f7b7ea2401d16ea6eeddb90317bd4231cc2f9c83 | [
"MIT"
] | 1 | 2020-04-11T06:38:23.000Z | 2020-04-11T06:38:23.000Z | defmodule NknClient.WS.Supervisor do
use Supervisor
alias NknClient.WS
alias NknClient.RPC
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
{WS.Client, "ws://#{RPC.get_address()}"},
{WS.MessageSink, []},
{WS.NodeInfo, :o... | 19.571429 | 60 | 0.635036 |
732aa10eabeadd506af34bf4a86b8ad4e5119dcf | 10,582 | exs | Elixir | lib/elixir/test/elixir/module/types/infer_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2020-01-14T18:44:56.000Z | 2020-01-14T18:44:56.000Z | lib/elixir/test/elixir/module/types/infer_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | null | null | null | lib/elixir/test/elixir/module/types/infer_test.exs | DmitryKakurin/elixir | a5df6a5a830d4cff8b7c8da54342b66cab999e0f | [
"Apache-2.0"
] | 1 | 2018-01-09T20:10:59.000Z | 2018-01-09T20:10:59.000Z | Code.require_file("../../test_helper.exs", __DIR__)
defmodule Module.Types.InferTest do
use ExUnit.Case, async: true
import Module.Types.Infer
alias Module.Types
defp unify_lift(left, right, context \\ new_context()) do
unify(left, right, new_stack(), context)
|> lift_result()
end
defp new_contex... | 41.661417 | 98 | 0.534871 |
732aac3feb9283c89a4b41d3750abf4d468e6bbb | 645 | exs | Elixir | test/live_sup_web/live/welcome_live_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/live_sup_web/live/welcome_live_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | 3 | 2022-02-23T15:51:48.000Z | 2022-03-14T22:52:43.000Z | test/live_sup_web/live/welcome_live_test.exs | livesup-dev/livesup | eaf9ffc78d3043bd9e3408f0f4df26ed16eb8446 | [
"Apache-2.0",
"MIT"
] | null | null | null | defmodule LiveSupWeb.Test.Live.WelcomeLive do
use LiveSupWeb.ConnCase
import Phoenix.LiveViewTest
import LiveSup.Test.TeamsFixtures
defp create_teams(_) do
team_a = team_fixture(%{name: "Team A"})
team_b = team_fixture(%{name: "Team B"})
%{team_a: team_a, team_b: team_b}
end
describe "Index" ... | 24.807692 | 78 | 0.685271 |
732ae43a19aa485807716aa18bc76d836b415dd6 | 727 | ex | Elixir | apps/note_it/lib/note_it/application.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it/lib/note_it/application.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | apps/note_it/lib/note_it/application.ex | sushilman/note-it | c47edafb4272b9f01d53f8566f5ed7858f2d355c | [
"Apache-2.0"
] | null | null | null | defmodule NoteIt.Application do
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
# Define workers and child supervisors to be supervised
chi... | 30.291667 | 78 | 0.708391 |
732af1e33cd7c1579fb8219bc0ea3fb63069c229 | 22,128 | exs | Elixir | test/sanbase_web/graphql/billing/timeframe_access_restrictions/api_product_access_test.exs | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | test/sanbase_web/graphql/billing/timeframe_access_restrictions/api_product_access_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | test/sanbase_web/graphql/billing/timeframe_access_restrictions/api_product_access_test.exs | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Billing.ApiProductAccessTest do
use SanbaseWeb.ConnCase, async: false
import Sanbase.Factory
import Sanbase.TestHelpers
import SanbaseWeb.Graphql.TestHelpers
import Mock
alias Sanbase.Accounts.Apikey
alias Sanbase.Metric
alias Sanbase.Signal
@product "SANAPI"
setup_all_with_moc... | 36.941569 | 98 | 0.632683 |
732b0f7e4f67d03aca6d0168e0119b95cb4d8701 | 1,653 | ex | Elixir | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/service_management/lib/google_api/service_management/v1/model/get_iam_policy_request.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.170213 | 183 | 0.760436 |
732b10df97ee353e04a3a8f6c74f280733106ca3 | 512 | ex | Elixir | lib/dnsimple/whois_privacy_renewal.ex | patmaddox/dnsimple-elixir | 99e7d178493e7900c3a89dd4d99d81597ed58020 | [
"MIT"
] | null | null | null | lib/dnsimple/whois_privacy_renewal.ex | patmaddox/dnsimple-elixir | 99e7d178493e7900c3a89dd4d99d81597ed58020 | [
"MIT"
] | 14 | 2021-02-19T07:09:55.000Z | 2022-02-24T12:33:37.000Z | lib/dnsimple/whois_privacy_renewal.ex | littleairmada/dnsimple-elixir | a1b71a9c84d1a440f86199b8f48754e1c88ca19f | [
"MIT"
] | null | null | null | defmodule Dnsimple.WhoisPrivacyRenewal do
@moduledoc """
Represents the whois privacy renewal of a domain.
See:
- https://developer.dnsimple.com/v2/registrar/whois-privacy/
"""
@type t :: %__MODULE__{
id: integer,
domain_id: integer,
whois_privacy_id: integer,
state: String.t,
enabled:... | 22.26087 | 93 | 0.707031 |
732b188c79a4ba4991c86b2bd053f172e6f618a4 | 985 | exs | Elixir | projects/FizzBuzz/fizzbuzz_recursive_optimized.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 38 | 2018-12-31T10:51:42.000Z | 2022-03-25T18:18:10.000Z | projects/FizzBuzz/fizzbuzz_recursive_optimized.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | null | null | null | projects/FizzBuzz/fizzbuzz_recursive_optimized.exs | Maultasche/LwmElixirProjects | 4b962230c9b5b3cf6cc8b34ef2161ca6fde4412c | [
"MIT"
] | 6 | 2019-08-19T03:21:36.000Z | 2021-07-16T09:34:49.000Z | defmodule FizzBuzz do
def perform_count(total_count) do
total_count
|> count([])
|> print()
end
#The base case: gets called when count is 0
defp count(0, output) do
output
end
#Gets called when the count is divisible by 3 and 5
defp count(count, output) when rem(count, 3) == 0 and rem(count, 5) == 0 ... | 22.906977 | 76 | 0.669036 |
732b35abc8eede1f98b478d7ebe134e31537e54e | 1,206 | exs | Elixir | mix.exs | lucaong/elixir_mlx90640 | 3f85856c2c799588e86bc753190e8fb16ae78e77 | [
"Apache-2.0"
] | 9 | 2018-11-03T21:36:18.000Z | 2020-11-19T06:04:25.000Z | mix.exs | lucaong/elixir_mlx90640 | 3f85856c2c799588e86bc753190e8fb16ae78e77 | [
"Apache-2.0"
] | null | null | null | mix.exs | lucaong/elixir_mlx90640 | 3f85856c2c799588e86bc753190e8fb16ae78e77 | [
"Apache-2.0"
] | null | null | null | defmodule Mlx90640.MixProject do
use Mix.Project
def project do
[
app: :elixir_mlx90640,
version: "0.1.8",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make] ++ Mix.compilers,
aliases: aliases(),
package: package(),
source_url: "http... | 23.647059 | 115 | 0.573798 |
732b475401306b2924eff3c4ee354d26117f826f | 2,046 | ex | Elixir | clients/content/lib/google_api/content/v2/model/order_refund.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/content/lib/google_api/content/v2/model/order_refund.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/content/lib/google_api/content/v2/model/order_refund.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 34.677966 | 122 | 0.689638 |
732b7645727c4729f4d83673a6b6521d87c2e90b | 678 | ex | Elixir | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | 4 | 2018-09-29T03:43:15.000Z | 2021-04-01T18:30:46.000Z | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | Microsoft.Azure.Management.EventHub/lib/microsoft/azure/management/event_hub/model/arm_disaster_recovery.ex | chgeuer/ex_microsoft_azure_management | 99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603 | [
"Apache-2.0"
] | null | null | null | # NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule Microsoft.Azure.Management.EventHub.Model.ArmDisasterRecovery do
@moduledoc """
Single item in List or Get Alias(Disaster Recovery configurati... | 22.6 | 93 | 0.69174 |
732bd33ce1e0a503451673a12e53501943c287fd | 454 | ex | Elixir | lib/kwtool/crawlers/upload_parser.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 5 | 2021-12-14T08:18:24.000Z | 2022-03-29T10:02:48.000Z | lib/kwtool/crawlers/upload_parser.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 32 | 2021-03-21T16:32:18.000Z | 2022-03-23T08:00:37.000Z | lib/kwtool/crawlers/upload_parser.ex | byhbt/kwtool | 8958a160066e3e4c61806202af2563541f2261e3 | [
"MIT"
] | 1 | 2021-06-03T17:22:16.000Z | 2021-06-03T17:22:16.000Z | defmodule Kwtool.Crawlers.UploadParser do
alias NimbleCSV.RFC4180, as: CSV
def parse(%Plug.Upload{content_type: "text/csv"} = keyword_file) do
keyword_list =
keyword_file.path
|> File.stream!()
|> CSV.parse_stream(skip_headers: false)
|> Enum.to_list()
if length(keyword_list) > 0 d... | 22.7 | 69 | 0.647577 |
732bdda7d6082f4bffdd50d52aaf45d49d851bc9 | 953 | ex | Elixir | lib/graphql/resolvers/machine_translation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 806 | 2018-04-07T20:40:33.000Z | 2022-03-30T01:39:57.000Z | lib/graphql/resolvers/machine_translation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 194 | 2018-04-07T13:49:37.000Z | 2022-03-30T19:58:45.000Z | lib/graphql/resolvers/machine_translation.ex | isshindev/accent | ae4c13139b0a0dfd64ff536b94c940a4e2862150 | [
"BSD-3-Clause"
] | 89 | 2018-04-09T13:55:49.000Z | 2022-03-24T07:09:31.000Z | defmodule Accent.GraphQL.Resolvers.MachineTranslation do
require Ecto.Query
alias Ecto.Query
alias Accent.Scopes.Revision, as: RevisionScope
alias Accent.{
Language,
MachineTranslations,
Project,
Repo,
Revision
}
@spec translate_text(Project.t(), %{text: String.t(), source_language_sl... | 27.228571 | 151 | 0.718783 |
732c0703b9200417833344b1175e644543a5fff1 | 17,909 | ex | Elixir | lib/elixir/lib/record.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 4 | 2016-04-05T05:51:36.000Z | 2019-10-31T06:46:35.000Z | lib/elixir/lib/record.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/record.ex | joearms/elixir | 9a0f8107bd8bbd089acb96fe0041d61a05e88a9b | [
"Apache-2.0"
] | 5 | 2015-02-01T06:01:19.000Z | 2019-08-29T09:02:35.000Z | defmodule Record do
@moduledoc """
Functions to define Elixir records
"""
@doc """
Extract record information from an Erlang file and
return the fields as a list of tuples.
## Examples
defrecord FileInfo, Record.extract(:file_info, from_lib: "kernel/include/file.hrl")
"""
def extract(name, o... | 27.217325 | 122 | 0.627227 |
732c256449d71ce41cf91d47a26cc933d0c1a832 | 1,248 | ex | Elixir | debian/watch.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | debian/watch.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | debian/watch.ex | mingw-deb/pdcurses | aa2dec102403fc95f433f22e856f5026557aba10 | [
"X11"
] | null | null | null | # Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 4 file
version=4
# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
#opts="pgpsigurlmangle=s%$%.s... | 32 | 112 | 0.679487 |
732c3527efd367d37d280b6c259eb866087648ef | 7,393 | ex | Elixir | lib/astarte_vmq_plugin.ex | matt-mazzucato/astarte_vmq_plugin | 83b1b3e67fe749326b66f06ce57dfc120d549fdf | [
"Apache-2.0"
] | null | null | null | lib/astarte_vmq_plugin.ex | matt-mazzucato/astarte_vmq_plugin | 83b1b3e67fe749326b66f06ce57dfc120d549fdf | [
"Apache-2.0"
] | null | null | null | lib/astarte_vmq_plugin.ex | matt-mazzucato/astarte_vmq_plugin | 83b1b3e67fe749326b66f06ce57dfc120d549fdf | [
"Apache-2.0"
] | null | null | null | #
# This file is part of Astarte.
#
# Copyright 2017 Ispirata Srl
#
# 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 appl... | 28.544402 | 96 | 0.665765 |
732c3c9baa40a372357fddb836dc9e2870a2bb6a | 7,740 | ex | Elixir | lib/mcc/lib.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 13 | 2019-02-28T05:24:35.000Z | 2021-11-10T16:39:07.000Z | lib/mcc/lib.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 1 | 2019-03-02T16:20:26.000Z | 2019-03-15T09:18:57.000Z | lib/mcc/lib.ex | getong/mcc | 5e4dd398a7f5ac0869aa8208724ee1c4b2a9df40 | [
"Apache-2.0"
] | 2 | 2019-02-28T00:00:02.000Z | 2019-08-15T13:55:17.000Z | defmodule Mcc.Lib do
@moduledoc """
This module contains functions to manipulate cluster based on mnesia.
Includes:
- 1, start mnesia and mnesia table
- 2, make node join into the mnesia cluster
- 3, make node leave from the mnesia cluster
- 4, remove one node from mnesia cluster
- 5, get st... | 26.506849 | 94 | 0.627778 |
732cb05579b48a247ada8dc8f3e1979a19b9347b | 122 | exs | Elixir | test/test_helper.exs | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | 181 | 2016-03-31T13:16:33.000Z | 2021-11-14T09:04:39.000Z | test/test_helper.exs | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | 23 | 2016-03-31T15:20:02.000Z | 2021-04-29T10:05:37.000Z | test/test_helper.exs | rubysolo/logster | 706de0abc211b2ec9f657bcc5c7c8d2a373ac49f | [
"MIT"
] | 27 | 2016-04-01T17:05:09.000Z | 2021-12-10T15:11:36.000Z | Application.ensure_all_started(:plug)
ExUnit.configure(formatters: [ExUnit.CLIFormatter, ExUnitNotifier])
ExUnit.start()
| 24.4 | 67 | 0.827869 |
732cc54c2aacf91f18b96039774f32bca2e6f30a | 1,696 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/global_network_endpoint_groups_detach_endpoints_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | null | null | null | clients/compute/lib/google_api/compute/v1/model/global_network_endpoint_groups_detach_endpoints_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/compute/lib/google_api/compute/v1/model/global_network_endpoint_groups_detach_endpoints_request.ex | medikent/elixir-google-api | 98a83d4f7bfaeac15b67b04548711bb7e49f9490 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.615385 | 153 | 0.757075 |
732cd24d480ecf07a7a902cd78f6ddfbe468a087 | 5,091 | exs | Elixir | test/cforum/jobs/notify_users_message_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | test/cforum/jobs/notify_users_message_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | test/cforum/jobs/notify_users_message_job_test.exs | jrieger/cforum_ex | 61f6ce84708cb55bd0feedf69853dae64146a7a0 | [
"MIT"
] | null | null | null | defmodule Cforum.Jobs.NotifyUsersMessageJobTest do
use Cforum.DataCase
import Swoosh.TestAssertions
import CforumWeb.Gettext
import Ecto.Query, warn: false
alias Cforum.Notifications
alias Cforum.Repo
setup do
user = insert(:user)
forum = insert(:public_forum)
thread = insert(:thread, foru... | 36.891304 | 120 | 0.646238 |
732cea2afeae4f87279e0dc1b506244a016b3523 | 2,290 | ex | Elixir | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/resource_requirements.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/resource_requirements.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | clients/cloud_run/lib/google_api/cloud_run/v1alpha1/model/resource_requirements.ex | MMore/elixir-google-api | 0574ec1439d9bbfe22d63965be1681b0f45a94c9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 45.8 | 489 | 0.751092 |
732d03601d1f16ffb52511325f76d3a4f31b1a76 | 367 | ex | Elixir | web/models/user.ex | nethad/appricot-phoenix | cbce91b23e785f6f3501014710a473547b4af386 | [
"MIT"
] | null | null | null | web/models/user.ex | nethad/appricot-phoenix | cbce91b23e785f6f3501014710a473547b4af386 | [
"MIT"
] | null | null | null | web/models/user.ex | nethad/appricot-phoenix | cbce91b23e785f6f3501014710a473547b4af386 | [
"MIT"
] | null | null | null | defmodule Appricot.User do
use Appricot.Web, :model
schema "users" do
field :name, :string
field :email, :string
timestamps()
end
@doc """
Builds a changeset based on the `struct` and `params`.
"""
def changeset(struct, params \\ %{}) do
struct
|> cast(params, [:name, :email])
|... | 18.35 | 56 | 0.615804 |
732d08e75ccd39bd308e9d08a515d9634b32d8d3 | 485 | exs | Elixir | priv/repo/migrations/20200824131242_microsecond_timestamps.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | priv/repo/migrations/20200824131242_microsecond_timestamps.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | 9 | 2021-08-19T01:09:55.000Z | 2022-03-08T01:18:45.000Z | priv/repo/migrations/20200824131242_microsecond_timestamps.exs | sealas/sealax | 3f11b7f649972a43f4812ea959bd2be2e0151baa | [
"MIT"
] | null | null | null | defmodule Sealax.Repo.Migrations.MicrosecondTimestamps do
use Ecto.Migration
def change do
alter table(:account) do
modify :inserted_at, :utc_datetime_usec
modify :updated_at, :utc_datetime_usec
end
alter table(:user) do
modify :inserted_at, :utc_datetime_usec
modify :updated_at... | 25.526316 | 57 | 0.715464 |
732d14937d34c6ff3b9f6e4cf0f02c828dcdb3b2 | 1,215 | exs | Elixir | config/config.exs | philipecortez/issues | 5887fbb0435d43328a2b44fd2817b7de60e67e49 | [
"CC0-1.0"
] | null | null | null | config/config.exs | philipecortez/issues | 5887fbb0435d43328a2b44fd2817b7de60e67e49 | [
"CC0-1.0"
] | null | null | null | config/config.exs | philipecortez/issues | 5887fbb0435d43328a2b44fd2817b7de60e67e49 | [
"CC0-1.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :issues, github_url: "https://api.github.com"
config :logger, compile_time_purge_level: :info
# This configuration is loaded before any dependency and is restricted
# to this p... | 37.96875 | 73 | 0.753909 |
732d1c08929082cc59560b0115eaff79eb17ec64 | 686 | ex | Elixir | lib/ex_twilio/resources/studio/execution.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | null | null | null | lib/ex_twilio/resources/studio/execution.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | 1 | 2021-02-19T04:34:52.000Z | 2021-03-29T19:14:14.000Z | lib/ex_twilio/resources/studio/execution.ex | kianmeng/ex_twilio | d8621cab60bd03a46375a05b377623875754dda6 | [
"MIT"
] | 2 | 2022-03-08T22:05:17.000Z | 2022-03-09T05:29:46.000Z | defmodule ExTwilio.Studio.Execution do
@moduledoc """
Represents a specific person's run through a Flow.
An execution is active while the user is in the Flow, and it is considered ended when they stop or are kicked out of the Flow.
- [Twilio docs](https://www.twilio.com/docs/studio/rest-api/execution)
"""
... | 24.5 | 128 | 0.674927 |
732d51e1f76ce8904c6086e26c8415f66b2f8d45 | 998 | ex | Elixir | lib/monitor/application.ex | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 12 | 2018-11-04T03:39:34.000Z | 2020-04-29T19:30:58.000Z | lib/monitor/application.ex | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 16 | 2018-11-07T01:05:01.000Z | 2021-05-07T21:32:07.000Z | lib/monitor/application.ex | licaonfee/phoenix_gitlab_monitor | 1b7dd437018d42a2b7b9a1643e6767a48f312eee | [
"MIT"
] | 3 | 2019-08-27T20:29:00.000Z | 2020-05-25T20:36:12.000Z | defmodule Monitor.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start the endpoint when the ap... | 32.193548 | 85 | 0.718437 |
732da7aceef722a755499516918b3b91de152bc1 | 9,244 | exs | Elixir | test/cldr_test.exs | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | test/cldr_test.exs | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | test/cldr_test.exs | kianmeng/cldr | d0510a55b5406e4604d8823a98ff6b6aea2bb397 | [
"Apache-2.0"
] | null | null | null | defmodule Cldr.Test do
use ExUnit.Case, async: true
test "that the cldr source data directory is correct" do
assert String.ends_with?(Cldr.Config.source_data_dir(), "/priv/cldr") == true
end
test "that the client data directory is correct" do
assert String.ends_with?(Cldr.Config.client_data_dir(TestBa... | 30.407895 | 98 | 0.478473 |
732dabb2ffdbff58a27d4ad79bff7f84e52bf030 | 33,156 | ex | Elixir | apps/astarte_housekeeping/lib/astarte_housekeeping/queries.ex | drf/astarte | f1163ce26bcf53470b0d1419abb670d73bb280f5 | [
"Apache-2.0"
] | null | null | null | apps/astarte_housekeeping/lib/astarte_housekeeping/queries.ex | drf/astarte | f1163ce26bcf53470b0d1419abb670d73bb280f5 | [
"Apache-2.0"
] | 6 | 2019-11-15T16:00:19.000Z | 2019-12-16T10:41:48.000Z | apps/astarte_housekeeping/lib/astarte_housekeeping/queries.ex | drf/astarte | f1163ce26bcf53470b0d1419abb670d73bb280f5 | [
"Apache-2.0"
] | 2 | 2018-08-27T13:26:02.000Z | 2019-11-19T11:35:22.000Z | #
# This file is part of Astarte.
#
# Copyright 2017-2018 Ispirata Srl
#
# 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... | 30.059837 | 111 | 0.594221 |
732db31d3045ab631514b9db8f2357dcc9b284bd | 1,864 | ex | Elixir | clients/admin/lib/google_api/admin/directory_v1/model/batch_delete_printers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/admin/lib/google_api/admin/directory_v1/model/batch_delete_printers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/admin/lib/google_api/admin/directory_v1/model/batch_delete_printers_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.28 | 136 | 0.744635 |
732dc4d82a75c345517dc560f8fa79a48506fce4 | 211 | exs | Elixir | app/priv/repo/migrations/20200725173349_add_status_to_recording.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | 1 | 2021-01-20T20:00:50.000Z | 2021-01-20T20:00:50.000Z | app/priv/repo/migrations/20200725173349_add_status_to_recording.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | app/priv/repo/migrations/20200725173349_add_status_to_recording.exs | nathanjohnson320/noodl | 2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967 | [
"MIT"
] | null | null | null | defmodule Noodl.Repo.Migrations.AddStatusToRecording do
use Ecto.Migration
def change do
alter table(:recordings) do
add :status, :string
end
create index(:recordings, :status)
end
end
| 17.583333 | 55 | 0.7109 |
732dd3ae0c40ee60738459a0bbfe53a49f27bd64 | 469 | exs | Elixir | .workshop/exercises/hello_world/test/test_helper.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 10 | 2015-12-13T07:29:08.000Z | 2016-09-22T03:47:35.000Z | .workshop/exercises/hello_world/test/test_helper.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | 4 | 2015-12-02T12:12:14.000Z | 2016-01-11T07:33:24.000Z | .workshop/exercises/hello_world/test/test_helper.exs | silesian-beamers/elixir-from-the-ground-up | 1ad8c2a4d429175461dc45e218849eb6a212c776 | [
"MIT"
] | null | null | null | defmodule Workshop.Exercise.HelloWorldCheck.Helper do
def exec(solution_dir) do
# Locate and load and perhaps start the users solution.
# The following example assumes that the user solution is located
# in a file called *exercise.exs*:
"greeter.exs"
|> Path.expand(solution_dir)
|> Code.requ... | 26.055556 | 69 | 0.720682 |
732dd78a61e1b55418ddc76b4643a8da90d4c940 | 606 | ex | Elixir | lib/grizzly/zwave/commands/version_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | lib/grizzly/zwave/commands/version_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | lib/grizzly/zwave/commands/version_get.ex | jellybob/grizzly | 290bee04cb16acbb9dc996925f5c501697b7ac94 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.VersionGet do
@moduledoc """
This module implements command VERSION_GET of command class
COMMAND_CLASS_VERSION
Params: - none -
"""
@behaviour Grizzly.ZWave.Command
alias Grizzly.ZWave.Command
alias Grizzly.ZWave.CommandClasses.Version
@impl true
def new(_opts \... | 18.363636 | 61 | 0.671617 |
732ddb0e3ea39790a4707306c44d671589356022 | 1,268 | exs | Elixir | exercises/matrix/test/matrix_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | 2 | 2019-07-09T05:23:38.000Z | 2019-07-29T01:39:59.000Z | exercises/matrix/test/matrix_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | exercises/matrix/test/matrix_test.exs | DuoPan/elixir | e96388f242c383c1f45935570ed2f42394171fc6 | [
"MIT"
] | null | null | null | defmodule MatrixTest do
use ExUnit.Case
@input "1 2 3\n4 5 6\n7 8 9"
# @tag :pending
test "reading from and writing to string" do
matrix = Matrix.from_string(@input)
assert Matrix.to_string(matrix) == @input
end
@tag :pending
test "rows should return nested lists regardless of internal structur... | 24.384615 | 79 | 0.585962 |
732de92dd7765a89dc563ff3fc85c1182f0c9c1d | 442 | ex | Elixir | lib/hologram/compiler/decoders/map_type_decoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 40 | 2022-01-19T20:27:36.000Z | 2022-03-31T18:17:41.000Z | lib/hologram/compiler/decoders/map_type_decoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 42 | 2022-02-03T22:52:43.000Z | 2022-03-26T20:57:32.000Z | lib/hologram/compiler/decoders/map_type_decoder.ex | gregjohnsonsaltaire/hologram | aa8e9ea0d599def864c263cc37cc8ee31f02ac4a | [
"MIT"
] | 3 | 2022-02-10T04:00:37.000Z | 2022-03-08T22:07:45.000Z | defmodule Hologram.Compiler.MapTypeDecoder do
alias Hologram.Compiler.Decoder
def decode(%{"data" => data}) do
Enum.map(data, fn {key, value} -> {decode_key(key), Decoder.decode(value)} end)
|> Enum.into(%{})
end
defp decode_key(key) do
[_, type, value] =
~r/~(\w+)\[(.+)\]/
|> Regex.ru... | 19.217391 | 83 | 0.561086 |
732df914deae73d74c20da5aaff9c83d53590001 | 157 | exs | Elixir | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/27.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/27.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | machine_translation/MorpHIN/Learned/Resources/Set5/TrainingInstances/27.exs | AdityaPrasadMishra/NLP--Project-Group-16 | fb62cc6a1db4a494058171f11c14a2be3933a9a1 | [
"MIT"
] | null | null | null | **EXAMPLE FILE**
verb_aux pnoun noun cm P_wh;
noun noun adjective noun P_wh;
cm noun verb cm P_wh;
verb conj nst verb P_wh;
conj pn SYM particle P_wh;
| 19.625 | 31 | 0.732484 |
732e14bdb22a18a7c275e729351993017a858cee | 2,742 | ex | Elixir | lib/2020/day19.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | lib/2020/day19.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | lib/2020/day19.ex | hallski/adventofcode | 03efb385688e8072b0b44d35012297833498f799 | [
"MIT"
] | null | null | null | defmodule AdventOfCode.Y2020.Day19 do
import ExProf.Macro
alias AdventOfCode.Y2020.Day19.Parser
def run1() do
AdventOfCode.Helpers.Data.read_from_file_no_split("2020/day19.txt")
|> Parser.parse()
|> count_valid()
end
def run2() do
AdventOfCode.Helpers.Data.read_from_file_no_split("2020/day1... | 24.052632 | 77 | 0.62655 |
732e54882d288f0222ed99d09f3a55f7d338b108 | 343 | exs | Elixir | priv/repo/migrations/20150806111137_create_contestant.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150806111137_create_contestant.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | priv/repo/migrations/20150806111137_create_contestant.exs | thommay/bakeoff | 4c6cca860c45371f04021c3afceb4fe2e0b8d380 | [
"MIT"
] | null | null | null | defmodule Bakeoff.Repo.Migrations.CreateContestant do
use Ecto.Migration
def change do
create table(:contestants) do
add :name, :string
add :out, :boolean, default: false
add :knockedout, :integer
add :user_id, references(:users)
timestamps
end
create index(:contestants, ... | 20.176471 | 53 | 0.670554 |
732e862f303046d3b032ed76c81ceff2844ff7e8 | 1,982 | ex | Elixir | apps/omg_performance/lib/block_creator.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/block_creator.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | null | null | null | apps/omg_performance/lib/block_creator.ex | hoardexchange/elixir-omg | 423528699d467f1cc0d02c596290ab907af38c2c | [
"Apache-2.0"
] | 2 | 2020-06-07T11:14:54.000Z | 2020-08-02T07:36:32.000Z | # Copyright 2018 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 32.491803 | 95 | 0.74218 |
732e9a83423c32f7f1fd3acec3305f43dc21b583 | 118 | exs | Elixir | deps/gen_stage/.formatter.exs | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | deps/gen_stage/.formatter.exs | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | deps/gen_stage/.formatter.exs | fast-radius/kinesis | f98e1792c650c18bb1967d1067e77fe365245f2a | [
"MIT"
] | null | null | null | [
inputs: ["{mix,.formatter}.exs", "{lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
assert_kill: 2
]
]
| 16.857143 | 63 | 0.559322 |
732e9cc6aa3611186b5e9d9f85c7a1f9abe810e8 | 185 | exs | Elixir | priv/repo/migrations/20190124214848_add_covert_extension_to_games.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | priv/repo/migrations/20190124214848_add_covert_extension_to_games.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | priv/repo/migrations/20190124214848_add_covert_extension_to_games.exs | shanesveller/grapevine | fe74ade1adff88dfe4c1ab55fee3902dbb4664fe | [
"MIT"
] | null | null | null | defmodule Grapevine.Repo.Migrations.AddCovertExtensionToGames do
use Ecto.Migration
def change do
alter table(:games) do
add(:cover_extension, :string)
end
end
end
| 18.5 | 64 | 0.735135 |
732eb7fc1c6ce7d0facb3d828bde1b1ce7582824 | 2,010 | ex | Elixir | clients/monitoring/lib/google_api/monitoring/v3/model/linear.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | 1 | 2018-12-03T23:43:10.000Z | 2018-12-03T23:43:10.000Z | clients/monitoring/lib/google_api/monitoring/v3/model/linear.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | clients/monitoring/lib/google_api/monitoring/v3/model/linear.ex | matehat/elixir-google-api | c1b2523c2c4cdc9e6ca4653ac078c94796b393c3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | 37.924528 | 384 | 0.70398 |
732eb99377f741d2fc4fd9801630ac38efe5d823 | 38,777 | exs | Elixir | test/mix/tasks/phx.gen.auth_test.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2022-02-09T00:31:50.000Z | 2022-02-09T00:31:50.000Z | test/mix/tasks/phx.gen.auth_test.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | null | null | null | test/mix/tasks/phx.gen.auth_test.exs | samkenxstream/phoenix | 18433f95a90fc948e1d6d0f5606dfa339fdc6d61 | [
"MIT"
] | 1 | 2018-10-01T19:42:35.000Z | 2018-10-01T19:42:35.000Z | Code.require_file "../../../installer/test/mix_helper.exs", __DIR__
defmodule Mix.Tasks.Phx.Gen.AuthTest do
use ExUnit.Case
@moduletag :mix_phx_new
import MixHelper
alias Mix.Tasks.Phx.Gen
setup do
Mix.Task.clear()
:ok
end
defp in_tmp_phx_project(test, additional_args \\ [], func) do
in_t... | 42.057484 | 150 | 0.664776 |
732f2778aa3a9b3d0a59305b63e445c8e60a0141 | 1,873 | ex | Elixir | lib/ecto_cassandra/migration.ex | ne1ro/ecto_cassandra | f53f422618966e1ae070f77dc2972d9f189c40b9 | [
"MIT"
] | 4 | 2018-08-24T10:02:56.000Z | 2019-10-20T20:21:04.000Z | lib/ecto_cassandra/migration.ex | ne1ro/ecto_cassandra | f53f422618966e1ae070f77dc2972d9f189c40b9 | [
"MIT"
] | null | null | null | lib/ecto_cassandra/migration.ex | ne1ro/ecto_cassandra | f53f422618966e1ae070f77dc2972d9f189c40b9 | [
"MIT"
] | 2 | 2018-10-02T09:51:41.000Z | 2019-11-15T19:44:35.000Z | defmodule EctoCassandra.Migration do
@moduledoc """
Implement Ecto migrations
"""
alias Ecto.Migration.{Index, Table}
alias EctoCassandra.{Conn, Query}
alias Xandra.SchemaChange
@spec execute_ddl(
repo :: Ecto.Repo.t(),
Ecto.Adapter.Migration.command(),
options :: Keyword.t... | 36.72549 | 94 | 0.667912 |
732f3f8c7a51d12fe1fd53063d77399a7052b23d | 291 | exs | Elixir | test/nerves_hub_user_api_test.exs | nerves-hub/nerves_hub_core | aeef481f80391ad124fa14349ffa0bde67eb96d6 | [
"Apache-2.0"
] | 1 | 2018-12-06T04:06:37.000Z | 2018-12-06T04:06:37.000Z | test/nerves_hub_user_api_test.exs | nerves-hub/nerves_hub_core | aeef481f80391ad124fa14349ffa0bde67eb96d6 | [
"Apache-2.0"
] | 1 | 2019-01-09T18:07:00.000Z | 2019-01-09T18:07:00.000Z | test/nerves_hub_user_api_test.exs | nerves-hub/nerves_hub_core | aeef481f80391ad124fa14349ffa0bde67eb96d6 | [
"Apache-2.0"
] | null | null | null | defmodule NervesHubCoreTest do
use NervesHubCoreTest.Case
doctest NervesHubUserAPI
alias NervesHubUserAPI.User
setup :create_peer_user
test "backwards support for user client certificate auth", %{auth: auth} do
assert auth.cert
assert {:ok, _} = User.me(auth)
end
end
| 20.785714 | 77 | 0.749141 |
732f4bac0dc68a7b4d6301b406900b3b870a29d8 | 919 | exs | Elixir | test/enum_transform_misc_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | test/enum_transform_misc_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | test/enum_transform_misc_runner1_test.exs | ianrumford/plymio_enum | 019165e369508eadcb723579e02a86670d894bb4 | [
"MIT"
] | null | null | null | defmodule PlymioEnumTransformMiscRunner1Test do
use PlymioEnumHelpersTest
test "functions: misc" do
test_value = [a: 1, b: 2, c: 3]
helper_run_and_realise_tests_default1(
test_value: test_value,
test_specs: [
# Other Discrete Transform forms
# arbitrary {mod,fun} tuple as t... | 24.837838 | 89 | 0.495103 |
732f4cf3358b969ac23b47c14e57ac74cade1a8f | 14 | ex | Elixir | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CaptureNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 1,668 | 2015-01-03T05:54:27.000Z | 2022-03-25T08:01:20.000Z | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CaptureNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 2,018 | 2015-01-01T22:43:39.000Z | 2022-03-31T20:13:08.000Z | testData/org/elixir_lang/parser_definition/matched_three_operation_parsing_test_case/CaptureNonNumericOperation.ex | keyno63/intellij-elixir | 4033e319992c53ddd42a683ee7123a97b5e34f02 | [
"Apache-2.0"
] | 145 | 2015-01-15T11:37:16.000Z | 2021-12-22T05:51:02.000Z | &one ^^^ &two
| 7 | 13 | 0.428571 |
732f8850176f24e3a2b119d1268922d090adcadb | 260 | ex | Elixir | myApp/lib/myApp/repo.ex | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/lib/myApp/repo.ex | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | myApp/lib/myApp/repo.ex | CaptainAwesomeDi/unnamedproject | 1b2bbdbc9774a073e70eb8fcd255339d7a36df70 | [
"MIT"
] | null | null | null | defmodule MyApp.Repo do
use Ecto.Repo, otp_app: :myApp
@doc """
Dynamically loads the repository url from the
DATABASE_URL environment variable.
"""
def init(_, opts) do
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
end
end
| 21.666667 | 66 | 0.692308 |
732f9176e1f2a13838a4cf4584d0eb08d1ad5238 | 401 | exs | Elixir | process/messages_3.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | 4 | 2016-09-22T03:47:56.000Z | 2017-02-02T17:42:57.000Z | process/messages_3.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | process/messages_3.exs | hectorip/ErlangExercises | 4a1aa5de0504da1bfe5a6c31c1d20277524ab363 | [
"MIT"
] | null | null | null | defmodule MessageQueue do
def send_message(pid) do
send pid, ":)"
exit(:boom)
end
def receiveMessages() do
receive do
msg ->
IO.inspect msg
receiveMessages()
end
end
def run() do
Process.flag(:trap_exit, true)
spawn_link(MessageQueue, :send_message, [self])
... | 16.708333 | 51 | 0.613466 |
732fa9ef11389b171e72cfc10a066443d1a68f1f | 182 | ex | Elixir | test/fixtures/components/compound/view.ex | tsenturk/phoenix_components | dc1905743a9d30078b581112af105b48282eca79 | [
"MIT"
] | 3 | 2018-11-22T15:39:09.000Z | 2019-06-13T19:48:17.000Z | test/fixtures/components/compound/view.ex | tsenturk/phoenix_components | dc1905743a9d30078b581112af105b48282eca79 | [
"MIT"
] | 1 | 2021-07-15T13:01:36.000Z | 2021-07-15T13:01:36.000Z | test/fixtures/components/compound/view.ex | tsenturk/phoenix_components | dc1905743a9d30078b581112af105b48282eca79 | [
"MIT"
] | 5 | 2018-11-07T12:48:40.000Z | 2021-07-14T11:09:54.000Z | defmodule MyApp.Components.Compound do
@moduledoc """
Dummy compound component
"""
use MyApp.Component
import_components [:button, :jumbotron], from: MyApp.Components
end
| 20.222222 | 65 | 0.747253 |
732fb76e784d2dbaf9d95f3f759acae3518b2092 | 500 | exs | Elixir | test/norm/alt_test.exs | blackbox-solutions/norm | 12ea8e191b48b58a5a92f7e4ae92084a4ccd8669 | [
"MIT"
] | null | null | null | test/norm/alt_test.exs | blackbox-solutions/norm | 12ea8e191b48b58a5a92f7e4ae92084a4ccd8669 | [
"MIT"
] | null | null | null | test/norm/alt_test.exs | blackbox-solutions/norm | 12ea8e191b48b58a5a92f7e4ae92084a4ccd8669 | [
"MIT"
] | null | null | null | defmodule Norm.Spec.AltTest do
use ExUnit.Case, async: true
import Norm
describe "generation" do
test "returns one of the options" do
spec = alt(s: spec(is_binary()), i: spec(is_integer()), a: spec(is_atom()))
for {type, value} <- Enum.take(gen(spec), 5) do
case type do
:s ->
... | 20.833333 | 81 | 0.542 |
732fbf6e328b6e1f0cfe01caaeec5db5d5c5ee97 | 2,355 | exs | Elixir | test/flicks/accounts_test.exs | KTSCode/flicks-backend | e484b7a69cf24d7e474373c1ad627a3a4eaddbc6 | [
"MIT"
] | null | null | null | test/flicks/accounts_test.exs | KTSCode/flicks-backend | e484b7a69cf24d7e474373c1ad627a3a4eaddbc6 | [
"MIT"
] | null | null | null | test/flicks/accounts_test.exs | KTSCode/flicks-backend | e484b7a69cf24d7e474373c1ad627a3a4eaddbc6 | [
"MIT"
] | null | null | null | defmodule Flicks.AccountsTest do
use Flicks.DataCase
alias Flicks.Accounts
describe "users" do
alias Flicks.Accounts.User
@valid_attrs %{
email: "some email",
unique_identifier: "some unique_identifier",
username: "some username"
}
@update_attrs %{
email: "some updated e... | 30.584416 | 85 | 0.658174 |
732fdb3e8c596f9d4fe56da37c635dfeb839baa1 | 1,114 | exs | Elixir | config/config.exs | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | config/config.exs | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | config/config.exs | thomasvolk/stressman | 7c1b62d262ea8f2c38854ce053fe2888aaacd5b6 | [
"Apache-2.0"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 35.935484 | 73 | 0.755835 |
732fdd17d1634439936689083c480a59e0cf5409 | 801 | ex | Elixir | lib/sanbase/comments/entity_modules/wallet_hunters_proposal_comment.ex | santiment/sanbase2 | 9ef6e2dd1e377744a6d2bba570ea6bd477a1db31 | [
"MIT"
] | 81 | 2017-11-20T01:20:22.000Z | 2022-03-05T12:04:25.000Z | lib/sanbase/comments/entity_modules/wallet_hunters_proposal_comment.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 359 | 2017-10-15T14:40:53.000Z | 2022-01-25T13:34:20.000Z | lib/sanbase/comments/entity_modules/wallet_hunters_proposal_comment.ex | rmoorman/sanbase2 | 226784ab43a24219e7332c49156b198d09a6dd85 | [
"MIT"
] | 16 | 2017-11-19T13:57:40.000Z | 2022-02-07T08:13:02.000Z | defmodule Sanbase.Comment.WalletHuntersProposalComment do
@moduledoc ~s"""
A mapping table connecting comments and wallet hunters proposals.
"""
use Ecto.Schema
import Ecto.{Query, Changeset}
schema "wallet_hunters_proposals_comments_mapping" do
belongs_to(:comment, Sanbase.Comment)
belongs_to(:pr... | 25.03125 | 67 | 0.690387 |
73301d47ead42a5d3da74e6ef8a14e373621b72e | 872 | ex | Elixir | lib/tortoise311/package/puback.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | lib/tortoise311/package/puback.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | lib/tortoise311/package/puback.ex | jsmestad/tortoise311 | 146b4e5bcf967d0c07b43d0d029790f9f0a7d6a9 | [
"Apache-2.0"
] | null | null | null | defmodule Tortoise311.Package.Puback do
@moduledoc false
@opcode 4
alias Tortoise311.Package
@opaque t :: %__MODULE__{
__META__: Package.Meta.t(),
identifier: Tortoise311.package_identifier()
}
@enforce_keys [:identifier]
defstruct __META__: %Package.Meta{opcode: @opcode... | 29.066667 | 80 | 0.614679 |
73302d4b245fb7ffd64714b8bac5f2aafb3fa897 | 2,931 | ex | Elixir | lib/forcex/client.ex | sata/forcex | ac97cb5a9671063728bb12d443ba1cfbee072d77 | [
"MIT"
] | null | null | null | lib/forcex/client.ex | sata/forcex | ac97cb5a9671063728bb12d443ba1cfbee072d77 | [
"MIT"
] | null | null | null | lib/forcex/client.ex | sata/forcex | ac97cb5a9671063728bb12d443ba1cfbee072d77 | [
"MIT"
] | null | null | null | defmodule Forcex.Client do
require Logger
@default_endpoint "https://login.salesforce.com"
defstruct api_version: "41.0",
authorization_header: [],
endpoint: @default_endpoint,
services: %{}
@moduledoc """
This client delegates login to the appropriate endpoint depending... | 28.182692 | 100 | 0.66189 |
73302fa46653e31569591b47801a917c7f9e3bca | 50,610 | ex | Elixir | lib/mix/lib/mix/tasks/release.ex | brandondrew/elixir | 0bbd33fa9a2411920dce505340097a6c0e73bc46 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | brandondrew/elixir | 0bbd33fa9a2411920dce505340097a6c0e73bc46 | [
"Apache-2.0"
] | null | null | null | lib/mix/lib/mix/tasks/release.ex | brandondrew/elixir | 0bbd33fa9a2411920dce505340097a6c0e73bc46 | [
"Apache-2.0"
] | null | null | null | defmodule Mix.Tasks.Release do
use Mix.Task
@shortdoc "Assembles a self-contained release"
@moduledoc """
Assembles a self-contained release for the current project:
MIX_ENV=prod mix release
MIX_ENV=prod mix release NAME
Once a release is assembled, it can be packaged and deployed to a
targe... | 38.900846 | 106 | 0.696246 |
733041f5486f98b8552fc01c04cba6e693880818 | 61 | ex | Elixir | web/views/layout_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/layout_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | web/views/layout_view.ex | sgeos/memo_api | d57d0a1190296364a559510de9b4dd9d50b034e8 | [
"CC0-1.0"
] | null | null | null | defmodule MemoApi.LayoutView do
use MemoApi.Web, :view
end
| 15.25 | 31 | 0.786885 |
733051990c802f6af9b7d1bf370bd88ad3d7f174 | 3,289 | ex | Elixir | lib/yakusu_web/controllers/books/page_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | 1 | 2021-08-17T06:54:02.000Z | 2021-08-17T06:54:02.000Z | lib/yakusu_web/controllers/books/page_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | null | null | null | lib/yakusu_web/controllers/books/page_controller.ex | jiegillet/yakusu | 3d9cbc19b0a6112604b362186211400a2e4923b2 | [
"MIT"
] | null | null | null | defmodule YakusuWeb.Books.PageController do
use YakusuWeb, :controller
alias Yakusu.{Books, Repo}
alias Yakusu.Books.Page
action_fallback YakusuWeb.FallbackController
def index(conn, _params) do
pages = Books.list_pages()
render(conn, "index.json", pages: pages)
end
def get_book_pages(conn, %{... | 24.544776 | 85 | 0.590453 |
733066aed63cc1bb1563e350b9cc59d2cac46509 | 529 | exs | Elixir | examples/basic/mix.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 3 | 2020-07-18T11:02:23.000Z | 2021-06-24T12:32:56.000Z | examples/basic/mix.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 6 | 2020-05-02T15:32:26.000Z | 2020-10-22T11:33:08.000Z | examples/basic/mix.exs | kianmeng/benchee_dsl | 79e120ded84645192af372a5a45f9256ddb83313 | [
"MIT"
] | 1 | 2020-10-22T11:06:05.000Z | 2020-10-22T11:06:05.000Z | defmodule Basic.MixProject do
use Mix.Project
def project do
[
app: :basic,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applic... | 18.241379 | 59 | 0.553875 |
733085cba1cf48e76798daae20a4e9f791c99208 | 1,684 | ex | Elixir | lib/visualizer_web/endpoint.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | lib/visualizer_web/endpoint.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | lib/visualizer_web/endpoint.ex | ajanes/booster-ui | 63a1cd32f873d11ff2448666692c2f637dfc466b | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | defmodule VisualizerWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :visualizer
socket "/socket", VisualizerWeb.UserSocket
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug... | 29.034483 | 95 | 0.710808 |
7330ae77f3be65ecd781cdd46e61cc01e4aafc25 | 228 | ex | Elixir | solomon/web/models/resource.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 10 | 2018-04-12T22:29:52.000Z | 2021-10-18T17:07:45.000Z | solomon/web/models/resource.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | null | null | null | solomon/web/models/resource.ex | FoxComm/highlander | 1aaf8f9e5353b94c34d574c2a92206a1c363b5be | [
"MIT"
] | 1 | 2018-07-06T18:42:05.000Z | 2018-07-06T18:42:05.000Z | defmodule Solomon.Resource do
use Solomon.Web, :model
schema "resources" do
field :name, :string
field :description, :string
field :actions, {:array, :string}
belongs_to :system, Solomon.System
end
end
| 17.538462 | 38 | 0.684211 |
7330d1179a8e2222e0d7e02c02966b3ac03d8833 | 1,157 | exs | Elixir | mix.exs | maxneuvians/nio_google_authenticator | 0ed7719e58334b71d8eff766aa23baebd5d7138c | [
"MIT"
] | 13 | 2016-01-16T14:12:27.000Z | 2021-02-05T13:50:32.000Z | mix.exs | maxneuvians/nio_google_authenticator | 0ed7719e58334b71d8eff766aa23baebd5d7138c | [
"MIT"
] | 3 | 2016-08-01T13:01:10.000Z | 2017-08-04T14:33:48.000Z | mix.exs | maxneuvians/nio_google_authenticator | 0ed7719e58334b71d8eff766aa23baebd5d7138c | [
"MIT"
] | 5 | 2016-08-01T00:08:17.000Z | 2020-05-05T08:36:30.000Z | defmodule NioGoogleAuthenticator.Mixfile do
use Mix.Project
def project do
[app: :nio_google_authenticator,
version: "2.1.2",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps()]
... | 25.711111 | 84 | 0.626621 |
7330d77cff3dabafcb1429b301e42c4a1dac26d2 | 1,254 | exs | Elixir | config/config.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | config/config.exs | ScrimpyCat/Resx | b7ed996a6202ecaa6e411ebd989198e16d97719d | [
"BSD-2-Clause"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 33.891892 | 73 | 0.749601 |
73312d59c52f3e38fb5226a6aaf97ae212e3d95d | 883 | exs | Elixir | template_method/report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 516 | 2015-09-25T18:43:37.000Z | 2022-03-22T16:33:08.000Z | template_method/report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 2 | 2017-10-01T22:33:34.000Z | 2019-02-21T18:21:54.000Z | template_method/report.exs | joshnuss/design-patterns-in-elixir | 7f07cae0701ad460b6b275e382fad03324656989 | [
"MIT"
] | 52 | 2015-11-15T05:58:45.000Z | 2022-01-21T20:01:17.000Z | defmodule Report do
defmacro __using__(_) do
quote do
@title "Monthly Report"
@text ["Things are going", "really really well"]
def output_report do
output_start
output_head
output_body_start
output_lines
output_body_end
output_end
end
... | 23.236842 | 54 | 0.562854 |
73313216c2d2a3988cd74fbb68a425c8916f55eb | 1,681 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_create_version_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_create_version_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_create_version_operation_metadata.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.326923 | 142 | 0.755503 |
7331642fe7c1a06b1fcb8edbc3e1b55abb74d6d2 | 502 | exs | Elixir | priv/repo/migrations/20170709060016_add_events_fields.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | priv/repo/migrations/20170709060016_add_events_fields.exs | Apps-Team/conferencetools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | 6 | 2017-10-05T20:16:34.000Z | 2017-10-05T20:36:11.000Z | priv/repo/migrations/20170709060016_add_events_fields.exs | apps-team/events-tools | ce2e16a3e4a521dc4682e736a209e6dd380c050d | [
"Apache-2.0"
] | null | null | null | defmodule EventsTools.Repo.Migrations.AddEventsFields do
use Ecto.Migration
def change do
alter table(:events) do
add :background, :text
add :color_accent, :string
add :color_primary, :string
add :color_secondary, :string
add :location, :text
add :news, :text
add :sche... | 22.818182 | 56 | 0.61753 |
7331798a3c5ac229f106381c8e4840ea295adaf2 | 58,748 | ex | Elixir | lib/aws/generated/organizations.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/organizations.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | lib/aws/generated/organizations.ex | salemove/aws-elixir | debdf6482158a71a57636ac664c911e682093395 | [
"Apache-2.0"
] | null | null | null | # WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
# See https://github.com/aws-beam/aws-codegen for more details.
defmodule AWS.Organizations do
@moduledoc """
AWS Organizations
"""
alias AWS.Client
alias AWS.Request
def metadata do
%AWS.ServiceMetadata{
abbreviation: "Organizations",
api_vers... | 48.753527 | 194 | 0.767345 |
7331bb49769a994fc81808ce874c3f93080979f0 | 262 | ex | Elixir | apps/ae_socket_connector/lib/contract_helper.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 9 | 2019-04-24T17:21:18.000Z | 2021-07-19T16:41:33.000Z | apps/ae_socket_connector/lib/contract_helper.ex | davidyuk/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"0BSD"
] | 68 | 2019-08-06T09:25:13.000Z | 2021-03-10T11:04:41.000Z | apps/ae_socket_connector/lib/contract_helper.ex | isabella232/ae-channel-service | bfde1d3e6ca4fc6bcc4a387381d4838cd3f1ec42 | [
"ISC"
] | 6 | 2019-10-23T18:23:48.000Z | 2022-03-06T07:02:45.000Z | defmodule ContractHelper do
def to_sophia_bytes(binary) when is_binary(binary) do
"#" <> Base.encode16(binary)
end
def add_quotes(b) when is_binary(b), do: <<"\"", b::binary, "\"">>
def add_quotes(str) when is_list(str), do: "\"" ++ str ++ "\""
end
| 29.111111 | 68 | 0.633588 |
7331c9e73c1f78ea2739f380740af1f2bd29bdd2 | 62 | exs | Elixir | test/snowplow_tracker/emitters/server_test.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 6 | 2018-04-30T11:02:45.000Z | 2021-06-18T19:09:39.000Z | test/snowplow_tracker/emitters/server_test.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 15 | 2018-05-23T05:26:27.000Z | 2020-07-12T10:12:32.000Z | test/snowplow_tracker/emitters/server_test.exs | WTTJ/snowplow-elixir-tracker | 86b6301b4b98b04fca0d79ab2f4fca03a5e748c1 | [
"Apache-2.0"
] | 3 | 2020-06-05T23:30:14.000Z | 2021-06-22T08:14:35.000Z | defmodule Snowplow.Events.ServerTest do
use ExUnit.Case
end
| 15.5 | 39 | 0.822581 |
7331eeb9666886cd9278848331c2c4ea4b857930 | 4,542 | ex | Elixir | lib/con_cache/lock.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/lock.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | lib/con_cache/lock.ex | pap/con_cache | 2e13b6abd7de76dd378017ee3ef972c48916097c | [
"MIT"
] | null | null | null | defmodule ConCache.Lock do
@moduledoc false
alias ConCache.Lock.Resource
alias ConCache.Lock.Monitors
@type key :: any
@type result :: any
@type job :: (() -> result)
defstruct resources: HashDict.new, monitors: Monitors.new
use ExActor.Tolerant
@spec start :: {:ok, pid}
@spec start_link :: {:o... | 30.483221 | 103 | 0.696389 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.