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
219d4044efbb5d91713de0fa7d6ad521df9812c1
1,661
ex
Elixir
clients/analytics/lib/google_api/analytics/v3/model/account_child_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/analytics/lib/google_api/analytics/v3/model/account_child_link.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/analytics/lib/google_api/analytics/v3/model/account_child_link.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...
33.22
137
0.721854
219d6b5445cc9cdc11cf111af31c0ba1d2e14db2
429
exs
Elixir
config/prod.exs
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
8
2019-09-26T13:59:25.000Z
2020-03-30T21:26:48.000Z
config/prod.exs
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
39
2019-11-16T02:24:28.000Z
2020-01-14T16:40:28.000Z
config/prod.exs
tometoproject/tometo
ed91069b11a020723edb9a143de29d9bac86a2b0
[ "BlueOak-1.0.0", "Apache-2.0" ]
2
2019-12-16T07:55:14.000Z
2020-06-11T04:14:00.000Z
use Mix.Config config :aph, AphWeb.Endpoint, url: [host: "0.0.0.0", port: 4001], cache_static_manifest: "priv/static/cache_manifest.json" config :aph, Aph.Mailer, adapter: Bamboo.PostmarkAdapter config :sentry, environment_name: :prod, enable_source_code_context: true, root_source_code_path: File.cwd!(), ...
22.578947
58
0.722611
219d6c543a31e89d65ba2df82f94a398d9cb8c0e
34,994
ex
Elixir
lib/mix/lib/releases/assembler.ex
LaudateCorpus1/distillery
bbf7f1871553465eb21ef8ed5e2ace3308d79683
[ "MIT" ]
2
2017-09-29T17:09:17.000Z
2019-10-04T12:39:23.000Z
lib/mix/lib/releases/assembler.ex
LaudateCorpus1/distillery
bbf7f1871553465eb21ef8ed5e2ace3308d79683
[ "MIT" ]
null
null
null
lib/mix/lib/releases/assembler.ex
LaudateCorpus1/distillery
bbf7f1871553465eb21ef8ed5e2ace3308d79683
[ "MIT" ]
3
2021-06-03T10:01:32.000Z
2022-03-17T09:57:37.000Z
defmodule Mix.Releases.Assembler do @moduledoc """ This module is responsible for assembling a release based on a `Mix.Releases.Config` struct. It creates the release directory, copies applications, and generates release-specific files required by `:systools` and `:release_handler`. """ alias Mix.Releases.{...
43.202469
130
0.591187
219dae1d6b63f05804b30acb4d287a3ac2f666aa
123
ex
Elixir
lib/google_fit/activity_type/squash.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
2
2017-02-01T13:51:26.000Z
2019-04-12T11:37:25.000Z
lib/google_fit/activity_type/squash.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
lib/google_fit/activity_type/squash.ex
tsubery/google_fit
7578b832c560b3b4a78059ac86af6e111812712e
[ "Apache-2.0" ]
null
null
null
defmodule GoogleFit.ActivityType.Squash do @moduledoc false def code, do: GoogleFit.ActivityType.code(__MODULE__) end
20.5
55
0.804878
219dca53cef2706e4ffd8104497b0fd9defb8da9
179
ex
Elixir
rf69/basic-nerves/lib/r.ex
ConnorRigby/elixir-radio-examples
1e5625a4dc957a7b25c04a3a01b447f0d65d16b9
[ "Apache-2.0" ]
1
2020-05-28T22:21:38.000Z
2020-05-28T22:21:38.000Z
rf69/basic-nerves/lib/r.ex
ConnorRigby/elixir-rf69-examples
1e5625a4dc957a7b25c04a3a01b447f0d65d16b9
[ "Apache-2.0" ]
null
null
null
rf69/basic-nerves/lib/r.ex
ConnorRigby/elixir-rf69-examples
1e5625a4dc957a7b25c04a3a01b447f0d65d16b9
[ "Apache-2.0" ]
null
null
null
defmodule R do @moduledoc """ Documentation for R. """ @doc """ Hello world. ## Examples iex> R.hello :world """ def hello do :world end end
9.421053
22
0.52514
219e150057461fd945548cc3f5f9698f9c79f3bd
2,261
exs
Elixir
config/config.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
config/config.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
config/config.exs
hlavacek/reactive-interaction-gateway
6b968b742d8f0456a51c31dbc744ccfacd57191e
[ "Apache-2.0" ]
null
null
null
use Mix.Config # By default, the umbrella project as well as each child # application will require this configuration file, ensuring # they all use the same configuration. While one could # configure all applications here, we prefer to delegate # back to each application for organization purposes. import_config "../ap...
33.746269
97
0.630252
219e37254a54dddfab97449033fddc8b24d088fa
736
ex
Elixir
lib/plug_session_db_store/sessions/session.ex
kimlindholm/plug_session_db_store
898cc1a3d4d43751aebb2495587841ad9136ffde
[ "MIT" ]
3
2021-02-15T13:03:15.000Z
2022-01-25T11:07:47.000Z
lib/plug_session_db_store/sessions/session.ex
kimlindholm/plug_session_db_store
898cc1a3d4d43751aebb2495587841ad9136ffde
[ "MIT" ]
null
null
null
lib/plug_session_db_store/sessions/session.ex
kimlindholm/plug_session_db_store
898cc1a3d4d43751aebb2495587841ad9136ffde
[ "MIT" ]
null
null
null
defmodule PlugSessionDbStore.Sessions.Session do @moduledoc """ Database-backed session. """ use Ecto.Schema import Ecto.Changeset @type t :: %__MODULE__{} schema "sessions" do field(:session_cookie, :string) field(:data, :binary) field(:valid_from, :utc_datetime_usec) field(:valid_to, ...
21.647059
68
0.679348
219e5ed5a90e3b08b0939d083e6087faa0233e2d
212
ex
Elixir
lib/sandbox.ex
svrdlans/rabbit
d32ac29793ec8bd7eede080fb482ec96a62934e4
[ "MIT" ]
1
2020-08-02T19:35:54.000Z
2020-08-02T19:35:54.000Z
lib/sandbox.ex
svrdlans/rabbit
d32ac29793ec8bd7eede080fb482ec96a62934e4
[ "MIT" ]
null
null
null
lib/sandbox.ex
svrdlans/rabbit
d32ac29793ec8bd7eede080fb482ec96a62934e4
[ "MIT" ]
1
2019-12-04T13:08:41.000Z
2019-12-04T13:08:41.000Z
defmodule X3m.Rabbit.Sandbox do use Supervisor @moduledoc false def start_link(_, _, _), do: Supervisor.start_link(__MODULE__, :ok) def init(:ok), do: supervise([], strategy: :one_for_one) end
17.666667
46
0.688679
219e99d8fa5d2ad99bcf9dec3b5dc87d8c6815aa
153
exs
Elixir
elixir/day01.exs
gorazdk/AdventOfCode2018
98d40a11ca39319adf02b7c5bc73698236c7a1c8
[ "MIT" ]
null
null
null
elixir/day01.exs
gorazdk/AdventOfCode2018
98d40a11ca39319adf02b7c5bc73698236c7a1c8
[ "MIT" ]
null
null
null
elixir/day01.exs
gorazdk/AdventOfCode2018
98d40a11ca39319adf02b7c5bc73698236c7a1c8
[ "MIT" ]
null
null
null
File.stream!("./inputs/day01.txt") |> Stream.map( &String.replace_suffix(&1, "\n", "") ) |> Stream.map( &String.to_integer(&1)) |> Enum.sum |> IO.puts
30.6
54
0.614379
219edb1b9801848cfaee89358bb039a4d0c4b25c
204
ex
Elixir
lib/wabanex_web/resolvers/user.ex
joaodubas/nlw-06
7d6a0dedf99ae81e37b3830268ca28ff671ba922
[ "MIT" ]
null
null
null
lib/wabanex_web/resolvers/user.ex
joaodubas/nlw-06
7d6a0dedf99ae81e37b3830268ca28ff671ba922
[ "MIT" ]
null
null
null
lib/wabanex_web/resolvers/user.ex
joaodubas/nlw-06
7d6a0dedf99ae81e37b3830268ca28ff671ba922
[ "MIT" ]
null
null
null
defmodule WabanexWeb.Resolvers.User do alias Wabanex.Users def get(%{id: user_id}, _context), do: Users.Get.call(user_id) def create(%{input: params}, _context), do: Users.Create.call(params) end
25.5
71
0.730392
219effbf625cd73091a5eca34b9528b6f0d8fdcc
1,669
exs
Elixir
config/dev.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
config/dev.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
config/dev.exs
spacexcorp/elixir-bank
b5cf0592598da469e3c2eb43befeb0a45592ad0a
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :elixir_bank, ElixirBank.Repo, username: "postgres", password: "postgres", database: "elixir_bank_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and cod...
28.775862
68
0.729179
219f2e222931ff767a88a178d39123d0f860d3c8
467
ex
Elixir
clients/elixir/generated/lib/swaggy_jenkins/model/label1.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/label1.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
clients/elixir/generated/lib/swaggy_jenkins/model/label1.ex
cliffano/jenkins-api-clients-generator
522d02b3a130a29471df5ec1d3d22c822b3d0813
[ "MIT" ]
null
null
null
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). # https://openapi-generator.tech # Do not edit the class manually. defmodule SwaggyJenkins.Model.Label1 do @moduledoc """ """ @derive [Poison.Encoder] defstruct [ :"_class" ] @type t :: %__MODULE__{ :"_...
17.961538
91
0.678801
219f3d2bddd612f2a8e7f29c39dc7334cdef75fe
1,857
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_image_annotation_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_image_annotation_context.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p3beta1_image_annotation_context.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...
33.763636
167
0.729672
219f5b904e83bc36cbc1395479d041fac3f973ed
8,316
exs
Elixir
test/techtree/projects/projects_test.exs
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
2
2018-10-26T06:06:42.000Z
2020-02-16T15:01:42.000Z
test/techtree/projects/projects_test.exs
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
108
2018-10-25T10:30:33.000Z
2021-07-28T04:18:03.000Z
test/techtree/projects/projects_test.exs
kenkeiras/TechTree
26c8ca59855002a88bf15eb0b64a6c788f438ec8
[ "WTFPL" ]
null
null
null
defmodule Techtree.ProjectsTest do use Techtree.DataCase alias Techtree.Projects describe "projects" do alias Techtree.Projects.Project @valid_attrs %{name: "some name"} @update_attrs %{name: "some updated name"} @invalid_attrs %{name: nil} def project_fixture(attrs \\ %{}) do {:ok, ...
33.804878
99
0.687109
219f9b9483eb05be19097a93f589ce059928c3e0
226
exs
Elixir
apps/bank/config/prod.exs
gusaiani/acme-bank-clone
4ebd638c56a3f5360bccff68aa6d321bb25bf2cd
[ "MIT" ]
776
2016-07-16T14:24:37.000Z
2022-03-07T17:05:11.000Z
apps/bank/config/prod.exs
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
19
2016-09-03T15:06:57.000Z
2021-12-10T10:04:05.000Z
apps/bank/config/prod.exs
fercho1224/devops
81a352d857e190963d9f045d73c91f3c36a12064
[ "MIT" ]
130
2016-09-03T19:44:27.000Z
2022-01-16T12:27:54.000Z
use Mix.Config config :logger, level: :info config :bank, Bank.Repo, adapter: Ecto.Adapters.Postgres, url: System.get_env("DATABASE_URL"), pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), ssl: true
22.6
68
0.716814
219fdaccf9d8c7ccdda4a262273c56057bc59188
1,063
exs
Elixir
elixir/day1/day1.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
elixir/day1/day1.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
elixir/day1/day1.exs
teemid/aoc2021
9cfea309e01fc463ffa20ca64a4a6468ffdc23d4
[ "MIT" ]
null
null
null
defmodule Day1 do def read_input(file_name) do File.open!(file_name) |> IO.read(:all) |> String.split("\n") |> Enum.map(&String.to_integer/1) end def is_increased(_, nil), do: 0 def is_increased(e, last) do if e - last > 0 do 1 else 0 end end def task1(input)...
21.693878
61
0.565381
21a016bdd629d75b5b365d233d593797d6e913db
493
exs
Elixir
elixir/mix.exs
dfireBird/aoc_2020
0393d3c85202b5babe73bce71c1e83d0876c53f6
[ "MIT" ]
null
null
null
elixir/mix.exs
dfireBird/aoc_2020
0393d3c85202b5babe73bce71c1e83d0876c53f6
[ "MIT" ]
null
null
null
elixir/mix.exs
dfireBird/aoc_2020
0393d3c85202b5babe73bce71c1e83d0876c53f6
[ "MIT" ]
null
null
null
defmodule AdventOfCode2020.MixProject do use Mix.Project def project do [ app: :advent_of_code_2020, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do...
17.607143
59
0.586207
21a01d1a12bf87608f7ee8f3d51de74888bf8f15
2,563
ex
Elixir
lib/fika/parser/literal_exps.ex
gkpacker/fika
2130d766998c2d52461a4395dc226e369694015c
[ "Apache-2.0" ]
null
null
null
lib/fika/parser/literal_exps.ex
gkpacker/fika
2130d766998c2d52461a4395dc226e369694015c
[ "Apache-2.0" ]
null
null
null
lib/fika/parser/literal_exps.ex
gkpacker/fika
2130d766998c2d52461a4395dc226e369694015c
[ "Apache-2.0" ]
null
null
null
defmodule Fika.Parser.LiteralExps do import NimbleParsec alias Fika.Parser.{Common, Helper, Types, Expressions} allow_space = parsec({Common, :allow_space}) identifier = parsec({Common, :identifier}) atom = parsec({Common, :atom}) type = parsec({Types, :type}) exp = parsec({Expressions, :exp}) intege...
21.358333
59
0.585252
21a03d8669e376d6f2e5240b1c3b78c9a0b31605
3,443
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/reports_configuration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/reports_configuration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/reports_configuration.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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...
39.574713
256
0.679349
21a056be58132ce264174cb9375b074077478744
18,229
ex
Elixir
lib/prom_ex.ex
Reimerei/prom_ex
620d2cb8b5002ebb35c5ffce12b8a559f06a402e
[ "MIT" ]
null
null
null
lib/prom_ex.ex
Reimerei/prom_ex
620d2cb8b5002ebb35c5ffce12b8a559f06a402e
[ "MIT" ]
null
null
null
lib/prom_ex.ex
Reimerei/prom_ex
620d2cb8b5002ebb35c5ffce12b8a559f06a402e
[ "MIT" ]
null
null
null
defmodule PromEx do @moduledoc """ PromEx is a plugin based library which can be used to capture telemetry events and report them out for consumption by Prometheus. The main purpose of this particular library is to provide the behaviour that all PromEx plugins leverage so that a consistent interface can be ...
32.904332
151
0.678699
21a0acea1a3aefd6d8496ad9ded9789f5f81d5fd
690
ex
Elixir
lib/bitcoin/metanet/meta.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
2
2019-08-12T04:53:57.000Z
2019-09-03T03:47:33.000Z
lib/bitcoin/metanet/meta.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
lib/bitcoin/metanet/meta.ex
coinscript/bitcoinsv-elixir
2dda03c81edc5662743ed2922abb5b1910d9c09a
[ "Apache-2.0" ]
null
null
null
defmodule Bitcoin.Metanet.Meta do defstruct [ inner: nil, parent_tx: "NULL", child_addr: nil ] alias Bitcoin.Metanet.Onchain defimpl Onchain do alias Bitcoin.Metanet.Meta def to_data_list(%Meta{inner: inner} = m) do case inner do %{} = p -> scripts = Onchain.to_dat...
19.166667
50
0.556522
21a0b35a03009cebb72fc202d004d68fa1473b2c
305
exs
Elixir
rumbrella/apps/info_sys/test/backends/http_client.exs
antonmi/espec_phoenix
51c44b6b1ece9fb48438b93f9765dfe834ee5544
[ "MIT" ]
144
2015-04-30T15:12:46.000Z
2022-01-07T03:40:26.000Z
rumbrella/apps/info_sys/test/backends/http_client.exs
antonmi/espec_phoenix
51c44b6b1ece9fb48438b93f9765dfe834ee5544
[ "MIT" ]
57
2015-04-29T11:26:54.000Z
2022-01-05T13:35:10.000Z
rumbrella/apps/info_sys/test/backends/http_client.exs
antonmi/espec_phoenix
51c44b6b1ece9fb48438b93f9765dfe834ee5544
[ "MIT" ]
46
2015-06-12T11:26:15.000Z
2021-12-15T00:38:26.000Z
defmodule InfoSys.Test.HTTPClient do @wolfram_xml File.read!("test/fixtures/wolfram.xml") def request(url) do url = to_string(url) cond do String.contains?(url, "1%20+%201") -> {:ok, {[], [], @wolfram_xml}} true -> {:ok, {[], [], "<queryresult></queryresult>"}} end end end
25.416667
73
0.596721
21a128882e34443d1da352733599535add97b4b9
1,698
exs
Elixir
config/config.exs
elexeum/elexeum
a38bccdd21035e47b286e2ec128b3d217cc4d0bf
[ "Apache-2.0" ]
2
2022-02-16T11:07:01.000Z
2022-03-14T08:29:48.000Z
config/config.exs
elexeum/elexeum
a38bccdd21035e47b286e2ec128b3d217cc4d0bf
[ "Apache-2.0" ]
null
null
null
config/config.exs
elexeum/elexeum
a38bccdd21035e47b286e2ec128b3d217cc4d0bf
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. # General application configuration import Config config :elexeum, ecto_repos: [Elexeum.Repo] # Conf...
32.037736
117
0.732038
21a13676dcd0d3560651741aaf3986933655f06e
1,582
ex
Elixir
lib/yuki_helper/exceptions.ex
penqen/yuki_helper
9952dd4711fc2dc98d8cdc41bd758b9b271ea036
[ "MIT" ]
null
null
null
lib/yuki_helper/exceptions.ex
penqen/yuki_helper
9952dd4711fc2dc98d8cdc41bd758b9b271ea036
[ "MIT" ]
1
2021-05-13T16:28:58.000Z
2021-05-13T16:28:58.000Z
lib/yuki_helper/exceptions.ex
penqen/yuki_helper
9952dd4711fc2dc98d8cdc41bd758b9b271ea036
[ "MIT" ]
null
null
null
defmodule YukiHelper.Exceptions do @moduledoc false defmodule AccessTokenError do defexception [description: "empty access token"] @impl true def message(exception) do "invalid access token : #{exception.description}" end end defmodule ConfigFileError do defexception [:file, descrip...
23.61194
90
0.680152
21a13ab9cd98988cafa59eb6028046f8364c9cff
2,234
exs
Elixir
apps/gallery/config/prod.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
null
null
null
apps/gallery/config/prod.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
11
2020-01-28T22:19:10.000Z
2022-03-11T23:18:18.000Z
apps/gallery/config/prod.exs
danmarcab/deep_painting
860c7d02bd6b112fffa199f715e61d895cba6623
[ "Apache-2.0" ]
null
null
null
use Mix.Config # For production, we often load configuration from external # sources, such as your system environment. For this reason, # you won't find the :http configuration below, but set inside # Gallery.Web.Endpoint.load_from_system_env/1 dynamically. # Any dynamic configuration should be moved to such function....
33.848485
67
0.720233
21a195e0116446abaaedc179210641e4e5de202e
6,148
exs
Elixir
test/wechat/message/xml_message_test.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
23
2016-12-25T13:38:38.000Z
2020-11-02T15:06:10.000Z
test/wechat/message/xml_message_test.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
15
2016-11-05T17:00:18.000Z
2019-08-28T10:00:41.000Z
test/wechat/message/xml_message_test.exs
h1u2i3/ex_wechat
0d5dc88f3f694cac9e46dd6529a1df203d60cdf1
[ "MIT" ]
8
2017-07-04T03:44:25.000Z
2020-11-11T08:32:39.000Z
defmodule Wechat.XmlMessageTest do use ExUnit.Case, async: true alias Wechat.Message.XmlMessage import Wechat.TestHelper.AssertHelper def text do %{ fromusername: "from", tousername: "to", msgtype: "text", content: "hello" } end def text_params do %{ fromusername...
21.2
81
0.527814
21a1967aa9f19d64b90ceb7d77422dffe57593c2
566
ex
Elixir
web/controllers/api_controller.ex
thechangelog/hola
22b3671bb9000bbe8f05844d1d8cbce5fd3d532c
[ "MIT" ]
9
2015-08-10T00:19:34.000Z
2019-05-24T13:08:55.000Z
web/controllers/api_controller.ex
thechangelog/hola
22b3671bb9000bbe8f05844d1d8cbce5fd3d532c
[ "MIT" ]
null
null
null
web/controllers/api_controller.ex
thechangelog/hola
22b3671bb9000bbe8f05844d1d8cbce5fd3d532c
[ "MIT" ]
null
null
null
defmodule Hola.ApiController do use Phoenix.Controller def home(conn, _params) do redirect conn, external: "https://changelog.com" end def memberful(conn, params) do event = params["event"] email = params["member"]["email"] if event == "member_signup" && email do result = Hola.Slack.inv...
18.866667
52
0.607774
21a1a388259c8a5b2af1e523114782cd9fdf8082
996
exs
Elixir
test/cache_test.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
3
2017-06-13T14:20:05.000Z
2018-06-21T01:00:49.000Z
test/cache_test.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
null
null
null
test/cache_test.exs
mendrugory/barenboim
ceda7785db0bdeaa0cd3a084a6a4d2641c9677ac
[ "MIT" ]
null
null
null
defmodule CacheTest do use ExUnit.Case alias Barenboim.Cache.Dependencies setup do if Dependencies.clean_table(), do: :ok, else: :error end test "insert dependency" do assert Dependencies.insert(1, 2) == true end test "remove one dependency" do assert Dependencies.insert(1, 2) == true ...
24.292683
88
0.670683
21a1bd5f58b2836d50b21ede4a575e8db9f49fc0
79
exs
Elixir
test/test_helper.exs
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
test/test_helper.exs
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
test/test_helper.exs
pinksynth/bank-account-charts
a4bb4c94941994a68151a7b3a94828d9bbf10833
[ "MIT" ]
null
null
null
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(BankAccountCharts.Repo, :manual)
26.333333
63
0.810127
21a1c4f53a645d276c480c1c4bcbe3fa0cc75031
3,456
ex
Elixir
lib/techtree_web/controllers/projects/dependency_controller.ex
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
null
null
null
lib/techtree_web/controllers/projects/dependency_controller.ex
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
1
2019-02-06T04:42:40.000Z
2019-02-06T04:42:40.000Z
lib/techtree_web/controllers/projects/dependency_controller.ex
kenkeiras/MonTree
7ec724634c123ee085921c4cac07800c9a15e4ec
[ "WTFPL" ]
null
null
null
defmodule TechtreeWeb.Projects.DependencyController do use TechtreeWeb, :controller alias Techtree.Projects alias Techtree.Projects.Step alias TechtreeWeb.Projects.ProjectController alias TechtreeWeb.Projects.Plugs plug :require_existing_contributor when action not in [:dependency_graph] plug :require_...
33.553398
97
0.667824
21a1f2124addaa9b560cc6b8cf983c92b61ddf6f
1,535
ex
Elixir
lib/cassette/client/generate_tgt.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
15
2016-03-03T11:22:00.000Z
2021-03-16T15:03:56.000Z
lib/cassette/client/generate_tgt.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
13
2016-06-16T11:43:02.000Z
2021-09-27T18:40:19.000Z
lib/cassette/client/generate_tgt.ex
maureenwonderland/elixir-cassette
2a1f7a0325c51b9abd572dc1d11529dfdd552dc9
[ "MIT" ]
6
2016-06-16T19:26:37.000Z
2021-04-15T19:32:04.000Z
defmodule Cassette.Client.GenerateTgt do @moduledoc """ Generates CAS Ticket Granting Tickets """ use HTTPoison.Base alias Cassette.Client alias Cassette.Config alias HTTPoison.Response @type result :: {:error, :bad_credentials} | {:ok, String.t()} | {:fail, pos_integer(...
27.909091
94
0.616287
21a204d62f2a8f921b3fc5aebf26ced73f2a4aa1
2,804
ex
Elixir
lib/new_relic/span/event.ex
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
null
null
null
lib/new_relic/span/event.ex
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
1
2019-02-08T01:08:31.000Z
2019-02-20T00:24:51.000Z
lib/new_relic/span/event.ex
alejandrodnm/elixir_agent
b2264d8f54244d136950cadd02f2533967a8e7cb
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic.Span.Event do # Struct for a Span Event # # * trace_id: Distributed Trace ID # - trace_id from Transaction # * guid: Segment Identifier # * parent_id: Segment's Parent's GUID # - id of incoming DT payload OR `guid` of parent segment # * transaction_id: Transaction's guid # * tim...
28.907216
94
0.609843
21a226614aba0767188d4171060f551babef543f
5,936
exs
Elixir
test/go_champs_api/organizations/organizations_test.exs
lairjr/go_champs_api
01cb3ff2c655910839e5caf4282a8e50543e32a1
[ "MIT" ]
null
null
null
test/go_champs_api/organizations/organizations_test.exs
lairjr/go_champs_api
01cb3ff2c655910839e5caf4282a8e50543e32a1
[ "MIT" ]
5
2021-09-29T04:01:54.000Z
2021-11-02T03:11:52.000Z
test/go_champs_api/organizations/organizations_test.exs
lairjr/tournamentsapi
dde8f8f659074527d3861391af3ab29f070179f2
[ "MIT" ]
1
2021-11-02T14:43:15.000Z
2021-11-02T14:43:15.000Z
defmodule GoChampsApi.OrganizationsTest do use GoChampsApi.DataCase alias GoChampsApi.Organizations alias GoChampsApi.Tournaments describe "organizations" do alias GoChampsApi.Organizations.Organization alias GoChampsApi.Tournaments.Tournament @valid_attrs %{ slug: "some-slug", name: ...
33.162011
104
0.677392
21a23a3f0032ce660b73bc7c4ffbfdc7a00eb11e
188
ex
Elixir
lib/epi_locator_web/views/page_view.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
null
null
null
lib/epi_locator_web/views/page_view.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
6
2021-10-19T01:55:57.000Z
2022-02-15T01:04:19.000Z
lib/epi_locator_web/views/page_view.ex
RatioPBC/epi-locator
58c90500c4e0071ce365d76ec9812f9051d6a9f9
[ "Apache-2.0" ]
2
2022-01-21T08:38:50.000Z
2022-01-21T08:42:04.000Z
defmodule EpiLocatorWeb.PageView do use EpiLocatorWeb, :view import EpiLocatorWeb.Plugs.RequireValidSignature, only: [commcare_signature_key: 0, commcare_signature_secret: 0] end
26.857143
67
0.81383
21a244f0ce7d113686919f9bb113c35e0f62fbe7
20,280
ex
Elixir
lib/redix/pubsub.ex
bforchhammer/redix
cd714e269706e6d138d873503d7526f3c591c240
[ "MIT" ]
null
null
null
lib/redix/pubsub.ex
bforchhammer/redix
cd714e269706e6d138d873503d7526f3c591c240
[ "MIT" ]
null
null
null
lib/redix/pubsub.ex
bforchhammer/redix
cd714e269706e6d138d873503d7526f3c591c240
[ "MIT" ]
null
null
null
defmodule Redix.PubSub do @moduledoc """ Interface for the Redis pub/sub functionality. The rest of this documentation will assume the reader knows how pub/sub works in Redis and knows the meaning of the following Redis commands: * `SUBSCRIBE` and `UNSUBSCRIBE` * `PSUBSCRIBE` and `PUNSUBSCRIBE` * ...
41.219512
98
0.697041
21a25dc315fc62841f567d1df2e0acba483de283
1,283
ex
Elixir
test/support/conn_case.ex
ruyjfs/example-elixir
9737205e4a548f2118f32ff45dd4f2d67a00c54a
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
ruyjfs/example-elixir
9737205e4a548f2118f32ff45dd4f2d67a00c54a
[ "Apache-2.0" ]
null
null
null
test/support/conn_case.ex
ruyjfs/example-elixir
9737205e4a548f2118f32ff45dd4f2d67a00c54a
[ "Apache-2.0" ]
null
null
null
defmodule ExampleElixirWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally,...
29.159091
75
0.733437
21a27ad34633fb2f06844e2b606ed29baabfd378
4,740
ex
Elixir
lib/exsh.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
lib/exsh.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
lib/exsh.ex
stollcri/exsh
cf4ef222d4be3698253b53e4c68be7a8602cd616
[ "BSD-3-Clause" ]
null
null
null
defmodule Exsh do @moduledoc """ Documentation for Exsh. mix escript.build; ./exsh "x | y=aa | 'bb (ls cc) dd'||ee(ff 'alias' gg)hh" --exit mix escript.build; ./exsh -s a=a --symbol b=b --exit symbols """ use Exsh.Repl def main(args) do args |> parse_args |> parse_settings |> repl end ...
27.55814
98
0.604008
21a2d18ef6d461ab73a747253b94b1da0d91941c
2,071
exs
Elixir
scripts/check-elixir-deps-discrepancies.exs
weizheng111/emqx
852033a95596362fb85f0c74289dcb97817a8f9e
[ "Apache-2.0" ]
null
null
null
scripts/check-elixir-deps-discrepancies.exs
weizheng111/emqx
852033a95596362fb85f0c74289dcb97817a8f9e
[ "Apache-2.0" ]
null
null
null
scripts/check-elixir-deps-discrepancies.exs
weizheng111/emqx
852033a95596362fb85f0c74289dcb97817a8f9e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env elixir # ensure we have a fresh rebar.lock case File.stat("rebar.lock") do {:ok, _} -> File.rm!("rebar.lock") _ -> :ok end {_, 0} = File.cwd!() |> Path.join("rebar3") |> System.cmd(["tree"], into: IO.stream()) {:ok, props} = :file.consult("rebar.lock") {[{_, rebar_deps}], [props]}...
19
107
0.525833
21a305746e3d2002bb412d891709a49d6e861b2e
1,335
ex
Elixir
lib/bankapi_web/controllers/client_controller.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
4
2020-05-05T18:37:28.000Z
2022-01-05T00:56:19.000Z
lib/bankapi_web/controllers/client_controller.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
21
2019-12-01T15:32:02.000Z
2019-12-19T13:10:36.000Z
lib/bankapi_web/controllers/client_controller.ex
t00lmaker/elixir-bank
41897d8fa87bb2fedbe3ef6f8f5cd78b756e24f0
[ "MIT" ]
2
2020-09-12T16:07:11.000Z
2020-12-11T06:46:45.000Z
defmodule BankWeb.ClientController do use BankWeb, :controller alias Bank.Clients alias Bank.Clients.Client alias Bank.Accounts action_fallback BankWeb.FallbackController def index(conn, _params) do clients = Clients.list_clients() render(conn, "index.json", clients: clients) end def create(...
28.404255
85
0.650936
21a31a613bb8fa513ea0c3b3f49614ca35cf654e
342
ex
Elixir
lib/ecto/application.ex
jccf091/ecto
42d47a6da0711f842e1a0e6724a89b318b9b2144
[ "Apache-2.0" ]
1
2017-11-27T06:00:32.000Z
2017-11-27T06:00:32.000Z
lib/ecto/application.ex
jccf091/ecto
42d47a6da0711f842e1a0e6724a89b318b9b2144
[ "Apache-2.0" ]
null
null
null
lib/ecto/application.ex
jccf091/ecto
42d47a6da0711f842e1a0e6724a89b318b9b2144
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Application do @moduledoc false use Application def start(_type, _args) do import Supervisor.Spec children = [ worker(Ecto.Registry, []), supervisor(Ecto.Migration.Supervisor, []) ] opts = [strategy: :one_for_one, name: Ecto.Supervisor] Supervisor.start_link(chil...
19
58
0.678363
21a33441466f3091e619a05721fc50256e7f64a5
1,869
ex
Elixir
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_face_annotation_landmark.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_face_annotation_landmark.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/vision/lib/google_api/vision/v1/model/google_cloud_vision_v1p5beta1_face_annotation_landmark.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 &quot;License&quot;); # 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 ...
33.981818
135
0.745853
21a391ff4646e6b4348cbf7c442009bc4d70c6df
3,986
ex
Elixir
apps/andi/lib/andi/input_schemas/datasets/business.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/andi/lib/andi/input_schemas/datasets/business.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/andi/lib/andi/input_schemas/datasets/business.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule Andi.InputSchemas.Datasets.Business do @moduledoc false use Ecto.Schema import Ecto.Changeset alias AndiWeb.Views.Options alias Andi.InputSchemas.StructTools @email_regex ~r/^[\w\_\~\!\$\&\'\(\)\*\+\,\;\=\:.-]+@[\w.-]+\.[\w.-]+?$/ @url_regex ~r|^https?://[^\s/$.?#].[^\s]*$| @ratings Map.keys(...
28.070423
120
0.686653
21a39fd820198dffa8aeed134327be43e5794883
13,174
exs
Elixir
test/ecto/changeset/many_to_many_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
1
2019-07-25T17:42:33.000Z
2019-07-25T17:42:33.000Z
test/ecto/changeset/many_to_many_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
test/ecto/changeset/many_to_many_test.exs
larryweya/ecto
d0d1fd43f0f97856a119184163167a7e79574923
[ "Apache-2.0" ]
null
null
null
defmodule Ecto.Changeset.ManyToManyTest do use ExUnit.Case, async: true alias Ecto.Changeset alias Ecto.Changeset.Relation alias __MODULE__.Author alias __MODULE__.Post defmodule Post do use Ecto.Schema schema "posts" do field :title, :string end def changeset(schema, params) do ...
36.493075
119
0.636936
21a3aaabdb6a8254a725559f968cb0005d6dc0e3
307
ex
Elixir
lib/os/configurator/network_layer.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
843
2016-10-05T23:46:05.000Z
2022-03-14T04:31:55.000Z
lib/os/configurator/network_layer.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
455
2016-10-15T08:49:16.000Z
2022-03-15T12:23:04.000Z
lib/os/configurator/network_layer.ex
bahanni/custom_rpi4
ddefa85d30bacaae40151a63a9a0ebbf4ad30ed5
[ "MIT" ]
261
2016-10-10T04:37:06.000Z
2022-03-13T21:07:38.000Z
defmodule FarmbotOS.Configurator.NetworkLayer do @moduledoc """ intermediate layer for stubbing Network interactions """ @doc "list network interfaces that can be configured" @callback list_interfaces() :: [String.t()] @doc "scan for wifi networks" @callback scan(String.t()) :: [map()] end
25.583333
55
0.716612
21a3af1c066e671e60a5a3360a5ac01fc435ee72
14,874
ex
Elixir
lib/scaffolding/v1/behaviours/repo_behaviour/redis_provider.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-07-03T10:15:05.000Z
2018-07-03T10:15:05.000Z
lib/scaffolding/v1/behaviours/repo_behaviour/redis_provider.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
1
2018-04-03T17:18:19.000Z
2018-04-03T17:18:19.000Z
lib/scaffolding/v1/behaviours/repo_behaviour/redis_provider.ex
noizu/elixir_scaffolding
607e1b0fd6eeb244c86876e55a0b03c29dd08395
[ "MIT" ]
2
2018-03-05T11:46:01.000Z
2018-07-03T10:15:07.000Z
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2018 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.Scaffolding.RepoBehaviour.RedisProvider do use Amnesia ...
56.340909
181
0.620277
21a3cccf34cb1c23ca4196f6a7bcb71b501f53b6
203
exs
Elixir
priv/repo/migrations/20200311184313_add_indices_to_api_keys.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
null
null
null
priv/repo/migrations/20200311184313_add_indices_to_api_keys.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
14
2022-03-02T17:01:59.000Z
2022-03-30T17:45:47.000Z
priv/repo/migrations/20200311184313_add_indices_to_api_keys.exs
helium/roaming-console
0157d0f1666f50259d2887ed23f6bc5138ce67b6
[ "Apache-2.0" ]
null
null
null
defmodule Console.Repo.Migrations.AddIndicesToApiKeys do use Ecto.Migration def change do create index(:api_keys, [:key]) create unique_index(:api_keys, [:name, :organization_id]) end end
22.555556
61
0.743842
21a40bd50f245fdccc66df9d810454e47ab640a2
2,453
ex
Elixir
server/lib/realtime/rls/replications.ex
profencer/realtime
b3a20e8278276a98d47c2c938abe73cfd9e69a63
[ "Apache-2.0" ]
null
null
null
server/lib/realtime/rls/replications.ex
profencer/realtime
b3a20e8278276a98d47c2c938abe73cfd9e69a63
[ "Apache-2.0" ]
null
null
null
server/lib/realtime/rls/replications.ex
profencer/realtime
b3a20e8278276a98d47c2c938abe73cfd9e69a63
[ "Apache-2.0" ]
null
null
null
defmodule Realtime.RLS.Replications do import Realtime.RLS.Repo def prepare_replication(slot_name, temporary_slot) do query( "select case when not exists ( select 1 from pg_replication_slots where slot_name = $1 ) then ( ...
25.821053
88
0.514064
21a43705b0edb07f07dc454c768cef56f21b7155
1,394
ex
Elixir
apps/notifier/test/support/data_case.ex
gitter-badger/opensubs.io
76d5b4d355a530c8f496efe3ac2095d87f078997
[ "MIT" ]
36
2018-02-03T10:58:51.000Z
2020-09-19T20:52:17.000Z
apps/notifier/test/support/data_case.ex
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
8
2018-01-17T17:15:48.000Z
2020-07-06T08:56:54.000Z
apps/notifier/test/support/data_case.ex
joaquimadraz/subs
9a26144ed660d5ece849ee447a9e5de53a311408
[ "MIT" ]
10
2018-05-21T18:20:32.000Z
2022-01-29T14:25:48.000Z
defmodule Notifier.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every tes...
25.814815
77
0.682209
21a4528e156992f28fa310927eaae191f94a97e1
1,813
ex
Elixir
lib/external_info.ex
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
1
2019-09-05T23:00:48.000Z
2019-09-05T23:00:48.000Z
lib/external_info.ex
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
7
2020-10-27T20:42:06.000Z
2021-11-15T07:41:15.000Z
lib/external_info.ex
langens-jonathan/mu-authorization
3b411460b81b87581af7c7f302b1d3bec4610608
[ "MIT" ]
6
2016-04-06T09:28:43.000Z
2021-08-09T12:29:16.000Z
defmodule ExternalInfo do @moduledoc """ Helper code to work with external information. This ensures it's easy to add specifically scoped data to structs. In order to use the methods offered by this module, the struct must have an ':external' property containing a map. The most common use is to use Exter...
27.892308
70
0.688362
21a45cc98c8e4de42f483b16fa01bd8837cd2fc0
12,994
ex
Elixir
project2/lib/Implementation.ex
DuncanPro64/gossip-push-sum-protocol
776ca042f30dd00cc3b54a74901a7ec2d1abee67
[ "MIT" ]
5
2019-02-25T16:55:26.000Z
2021-05-16T09:45:15.000Z
project2/lib/Implementation.ex
DuncanPro64/gossip-push-sum-protocol
776ca042f30dd00cc3b54a74901a7ec2d1abee67
[ "MIT" ]
null
null
null
project2/lib/Implementation.ex
DuncanPro64/gossip-push-sum-protocol
776ca042f30dd00cc3b54a74901a7ec2d1abee67
[ "MIT" ]
5
2017-10-25T17:11:31.000Z
2021-09-30T03:49:24.000Z
defmodule GossipSimulator.Implementation do def gossip_full(numNodes,trigger_node_count,nodes_to_ping,stopping_threshold) do for i <- 1..numNodes do pid = spawn(fn -> GossipSimulator.Gossip_Full_Actor.start_link(i,numNodes-1,nodes_to_ping) end) Process.monitor(pid) end ...
53.694215
125
0.562413
21a462504935dfa32a8701bb17c2aa30140c8d55
685
ex
Elixir
lib/cluster_scrape/query_nodes.ex
adhocteam/ClusterScrape
7cfd9d8a926677b0f5b578cc53c74333719de2f9
[ "Apache-2.0" ]
4
2018-01-04T18:48:53.000Z
2021-11-25T22:40:05.000Z
lib/cluster_scrape/query_nodes.ex
adhocteam/ClusterScrape
7cfd9d8a926677b0f5b578cc53c74333719de2f9
[ "Apache-2.0" ]
null
null
null
lib/cluster_scrape/query_nodes.ex
adhocteam/ClusterScrape
7cfd9d8a926677b0f5b578cc53c74333719de2f9
[ "Apache-2.0" ]
1
2021-11-26T10:24:05.000Z
2021-11-26T10:24:05.000Z
defmodule ClusterScrape.QueryNodes do def poll do # Get the list of running instances that match this release {:ok, %{body: body}} = ExAws.EC2.describe_instances(filters: ["tag:csrelease": System.get_env("RELEASE_HASH"), "instance-state-code": 16]) |> ExAws.request {doc, _} = body ...
31.136364
127
0.661314
21a496b6de597b30fd8619e426c07a1102dd562e
737
ex
Elixir
pancake/lib/waffle/message/test/fetch.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
1
2021-05-28T15:09:50.000Z
2021-05-28T15:09:50.000Z
pancake/lib/waffle/message/test/fetch.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
pancake/lib/waffle/message/test/fetch.ex
firecraftgaming/battleship-royale
463bf5e743f07affdb84ebd752e92ab3c6604f8f
[ "MIT" ]
null
null
null
defmodule Waffle.Message.Test.Fetch do use Waffle.Message.Call @primary_key false embedded_schema do end def changeset(initializer \\ %__MODULE__{}, data) do initializer |> cast(data, []) |> validate_required([]) end defmodule Reply do use Waffle.Message.Push ...
23.03125
100
0.601085
21a4a52021be8dfe176c8b484b08f2d2cf3f6f30
6,312
exs
Elixir
test/ja_serializer/builder/pagination_links_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/builder/pagination_links_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
test/ja_serializer/builder/pagination_links_test.exs
tompesman/ja_serializer
2b4aafece514add516784a6a81f7d6c724df8ac2
[ "Apache-2.0" ]
null
null
null
defmodule JaSerializer.Builder.PaginationLinksTest do use ExUnit.Case alias JaSerializer.Builder.PaginationLinks setup do on_exit fn -> Application.delete_env(:ja_serializer, :page_key) Application.delete_env(:ja_serializer, :page_base_url) Application.delete_env(:ja_serializer, :page_size_key) ...
29.914692
110
0.616762
21a4a6654f83135b477bcbff726e36e6df29b57a
1,002
ex
Elixir
lib/jump/application.ex
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
lib/jump/application.ex
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
lib/jump/application.ex
SXKDZ/MultiJump
97db71c3b207d8113987757a30f2f318c4a2fb58
[ "MIT" ]
null
null
null
defmodule Jump.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 Ecto repository s...
31.3125
82
0.707585
21a4f5728af58b83195294812ea6da9da7dd8455
1,737
ex
Elixir
lib/snowflex_id/encoder.ex
jyeshe/snowflex
9ca8acc35571f3837dd3b99a48c44f06b915553a
[ "Apache-2.0" ]
1
2021-02-14T17:30:40.000Z
2021-02-14T17:30:40.000Z
lib/snowflex_id/encoder.ex
jyeshe/snowflex
9ca8acc35571f3837dd3b99a48c44f06b915553a
[ "Apache-2.0" ]
1
2021-02-20T19:09:37.000Z
2021-02-20T19:09:37.000Z
lib/snowflex_id/encoder.ex
jyeshe/snowflex
9ca8acc35571f3837dd3b99a48c44f06b915553a
[ "Apache-2.0" ]
1
2021-02-13T15:13:09.000Z
2021-02-13T15:13:09.000Z
defmodule SnowflexId.Encoder do @moduledoc """ Generates Snowflex IDs based on custom epoch after node id and sequence number validations. """ @spec node_limit :: integer def node_limit, do: 1023 @spec sequence_limit :: integer def sequence_limit, do: 4095 @elixir_epoch :erlang.universaltime_to_pos...
28.47541
88
0.675878
21a523f585a64b7d2ead18070fcb7d59c52e9bf8
733
ex
Elixir
kv_umbrella/apps/kv/lib/kv_router.ex
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
kv_umbrella/apps/kv/lib/kv_router.ex
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
kv_umbrella/apps/kv/lib/kv_router.ex
GameEssa/ElixirProject
8f5fef5256719ef2ebcfb77c7bb7eb70687ece4f
[ "MIT" ]
null
null
null
defmodule KV.Router do def route( bucket, mod, fun, args ) do first = :binary.first( bucket ) entry = Enum.find( table(), fn {enum, _node} -> first in enum end ) || no_entry_error( bucket ) if elem(entry, 1) == node() do apply(mod, fun, args) else {KV.RouterTasks, elem(entry,...
24.433333
82
0.583902
21a54933b36f084a11f1792b3f04b5c152fdd9eb
668
ex
Elixir
app/lib/noodl/newsletters.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
1
2021-01-20T20:00:50.000Z
2021-01-20T20:00:50.000Z
app/lib/noodl/newsletters.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
app/lib/noodl/newsletters.ex
nathanjohnson320/noodl
2e449aab15b54fc5a1dc45ebf4b79e7b64b7c967
[ "MIT" ]
null
null
null
defmodule Noodl.Newsletters do @moduledoc """ The Messaging context. """ import Ecto.Query, warn: false alias Noodl.Repo alias Noodl.Newsletters.NewsletterUser @doc """ Returns the list of newsletter users. ## Examples iex> list_newsletter_users() [%NewsletterUser{}, ...] """ def...
17.128205
60
0.652695
21a59c7c0d59c48cc6757bb7816c55fc75684132
46
exs
Elixir
config/dev.exs
galina/smppsend
8ab15487a11b1c968e9f160515025e2c670f0521
[ "Apache-2.0" ]
17
2019-01-31T18:33:09.000Z
2022-01-18T12:38:49.000Z
config/dev.exs
galina/smppsend
8ab15487a11b1c968e9f160515025e2c670f0521
[ "Apache-2.0" ]
11
2017-07-14T10:03:58.000Z
2019-11-15T09:22:30.000Z
config/prod.exs
Awlexus/Ecbolic
754a6601853c211a0d4b7572d7f239b26e9867de
[ "Apache-2.0" ]
9
2017-06-19T07:10:06.000Z
2019-11-14T11:03:56.000Z
use Mix.Config config :logger, level: :info
9.2
28
0.717391
21a5b11a3c67500a4439281b7eb7b44bfb9636ae
1,837
ex
Elixir
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_apps_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_apps_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/android_enterprise/lib/google_api/android_enterprise/v1/model/web_apps_list_response.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "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.74
194
0.743604
21a5cd88410fab75f93ead2e6e285adebb866026
5,153
ex
Elixir
lib/redlock.ex
carrascoacd/redlock
092daf221ce9572395fcb243c7a1016ef11fc08e
[ "MIT" ]
null
null
null
lib/redlock.ex
carrascoacd/redlock
092daf221ce9572395fcb243c7a1016ef11fc08e
[ "MIT" ]
null
null
null
lib/redlock.ex
carrascoacd/redlock
092daf221ce9572395fcb243c7a1016ef11fc08e
[ "MIT" ]
1
2020-10-26T03:29:04.000Z
2020-10-26T03:29:04.000Z
defmodule Redlock do @moduledoc ~S""" This library is an implementation of Redlock (Redis destributed lock) [Redlock](https://redis.io/topics/distlock) ## Usage resource = "example_key:#{user_id}" lock_exp_sec = 10 case Redlock.lock(resource, lock_exp_sec) do {:ok, mutex} -> ...
29.786127
145
0.609354
21a5f39bc63801a0f255cd6008c592d494772e7c
28,733
ex
Elixir
lib/phoenix/router.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
lib/phoenix/router.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
lib/phoenix/router.ex
yithanglee/damien_phoenix
c21fa17afc9f550c337b255ac88890630d4bbb75
[ "MIT" ]
null
null
null
defmodule Phoenix.Router do defmodule NoRouteError do @moduledoc """ Exception raised when no route is found. """ defexception plug_status: 404, message: "no route found", conn: nil, router: nil def exception(opts) do conn = Keyword.fetch!(opts, :conn) router = Keyword.fetch!(opts, ...
31.197611
100
0.634706
21a6506c58d6b93fbd35d177f7aadfa1abf3c35c
3,767
exs
Elixir
test/groupher_server/billing/billing_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
240
2018-11-06T09:36:54.000Z
2022-02-20T07:12:36.000Z
test/groupher_server/billing/billing_test.exs
coderplanets/coderplanets_server
3663e56340d6d050e974c91f7e499d8424fc25e9
[ "Apache-2.0" ]
363
2018-07-11T03:38:14.000Z
2021-12-14T01:42:40.000Z
test/groupher_server/billing/billing_test.exs
mydearxym/mastani_server
f24034a4a5449200165cf4a547964a0961793eab
[ "Apache-2.0" ]
22
2019-01-27T11:47:56.000Z
2021-02-28T13:17:52.000Z
defmodule GroupherServer.Test.Billing do use GroupherServer.TestTools import Helper.Utils, only: [get_config: 2] alias Helper.ORM alias GroupherServer.Accounts.Model.User alias GroupherServer.Billing @senior_amount_threshold get_config(:general, :senior_amount_threshold) setup do {:ok, user} = db_...
36.931373
97
0.682241
21a65148cb2189e0ac2483477f4f83f2af64e179
926
ex
Elixir
test/support/channel_case.ex
aquap/leafblower
aa5f48dc99efef405af84de072199eaa3b13c02f
[ "Apache-2.0" ]
31
2021-11-28T05:48:48.000Z
2022-02-03T01:46:17.000Z
test/support/channel_case.ex
aquap/leafblower
aa5f48dc99efef405af84de072199eaa3b13c02f
[ "Apache-2.0" ]
8
2021-11-28T06:38:17.000Z
2021-12-10T01:21:17.000Z
test/support/channel_case.ex
aquap/leafblower
aa5f48dc99efef405af84de072199eaa3b13c02f
[ "Apache-2.0" ]
2
2021-11-28T21:09:47.000Z
2022-01-16T03:51:21.000Z
defmodule LeafblowerWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interact...
29.870968
67
0.74946
21a6533849201b4cdfe24fd446ba81557fc25f35
498
ex
Elixir
elixir/lib/homework/companies/company.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
elixir/lib/homework/companies/company.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
elixir/lib/homework/companies/company.ex
c-amer/web-homework
0f086762ce0248b0a78de4c876cd69fc91311ed8
[ "MIT" ]
null
null
null
defmodule Homework.Companies.Company do use Ecto.Schema import Ecto.Changeset alias Homework.Transactions.Transaction @primary_key {:id, :binary_id, autogenerate: true} schema "companies" do field(:name, :string) field(:credit_line, :float) field(:available_credit, :float, virtual: true) time...
19.92
52
0.696787
21a65ed1b8d06d31289402f40ce3fb1d7d537a1d
224
ex
Elixir
lib/mix/tasks/docker.rabbitmq.ex
AstridMN/elixir1
f62347179628937cdb63fc14db0b0a32c689e0ae
[ "MIT" ]
3
2017-04-18T06:23:18.000Z
2018-01-05T04:14:57.000Z
lib/mix/tasks/docker.rabbitmq.ex
AstridMN/elixir1
f62347179628937cdb63fc14db0b0a32c689e0ae
[ "MIT" ]
27
2016-11-04T19:56:11.000Z
2017-03-26T22:34:55.000Z
lib/mix/tasks/docker.rabbitmq.ex
AstridMN/elixir1
f62347179628937cdb63fc14db0b0a32c689e0ae
[ "MIT" ]
3
2016-10-05T11:56:42.000Z
2017-03-05T14:37:10.000Z
defmodule Mix.Tasks.Docker.Rabbitmq do @moduledoc """ TODO """ use Mix.Task @shortdoc "Run RabbitMQ in Docker" def run(_) do IO.puts System.cwd! System.cmd("sh", ["./docks/rabbitmq/run.sh"]) end end
14.933333
49
0.633929
21a66d4822d46008773c92217208eaf2f0349610
852
exs
Elixir
mix.exs
yuki-toida/ex_paidy
6f8244462dc0a5ebee4febff86ca496be88705d3
[ "MIT" ]
null
null
null
mix.exs
yuki-toida/ex_paidy
6f8244462dc0a5ebee4febff86ca496be88705d3
[ "MIT" ]
null
null
null
mix.exs
yuki-toida/ex_paidy
6f8244462dc0a5ebee4febff86ca496be88705d3
[ "MIT" ]
null
null
null
defmodule ExPaidy.MixProject do use Mix.Project @description """ simple HTTP client for Paidy """ def project do [ app: :ex_paidy, version: "0.3.0", elixir: "~> 1.6", name: "ExPaidy", description: @description, package: package(), start_permanent: Mix.env() ==...
18.933333
68
0.545775
21a66dcaf92aca647bd95182da731421e890c79a
12,445
exs
Elixir
test/ring_logger_test.exs
mnishiguchi/ring_logger
b483dbd3bbeae684d2de430c5b2a359da68c5aff
[ "Apache-2.0" ]
48
2018-02-23T08:25:21.000Z
2022-03-30T00:15:42.000Z
test/ring_logger_test.exs
mnishiguchi/ring_logger
b483dbd3bbeae684d2de430c5b2a359da68c5aff
[ "Apache-2.0" ]
31
2018-02-18T11:27:14.000Z
2022-01-12T13:12:59.000Z
test/ring_logger_test.exs
mnishiguchi/ring_logger
b483dbd3bbeae684d2de430c5b2a359da68c5aff
[ "Apache-2.0" ]
10
2018-04-14T19:10:19.000Z
2021-09-25T19:30:15.000Z
defmodule RingLoggerTest do use ExUnit.Case, async: false doctest RingLogger import ExUnit.CaptureIO require Logger alias RingLogger.TestCustomFormatter setup do {:ok, pid} = RingLogger.TestIO.start(self()) Logger.remove_backend(:console) # Flush any latent messages in the Logger to avoid the...
26.87905
95
0.616472
21a69f7d11e20fff06d743aae14d5240b5a5b581
2,823
ex
Elixir
lib/primes.ex
jotakami/ex-euler
0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2
[ "MIT" ]
null
null
null
lib/primes.ex
jotakami/ex-euler
0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2
[ "MIT" ]
null
null
null
lib/primes.ex
jotakami/ex-euler
0b7f1b2343c5339ccbaaaba9b8f8d0088b112df2
[ "MIT" ]
null
null
null
defmodule Primes do @moduledoc """ This module defines functions for working with prime numbers. """ def is_prime(n), do: is_prime(n, stream()) def is_prime(2, _primes), do: true def is_prime(n, _primes) when n < 2, do: false def is_prime(n, primes) do Enum.find_value(primes, false, fn p -> c...
27.676471
87
0.532058
21a704b34cf2dd6ea1b98465269092a1ee37035d
384
ex
Elixir
web/views/error_view.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
web/views/error_view.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
web/views/error_view.ex
colbydehart/MartaWhistle
852d1aaecb1fe5705fdcaab30283870613f6a66f
[ "MIT" ]
null
null
null
defmodule TrainWhistle.ErrorView do use TrainWhistle.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Internal server error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(...
21.333333
47
0.705729
21a70f5ba42baf61d07344ff25aea10ac2a334c8
204
exs
Elixir
notebooks/modulo_4/parte_2/ecto_example/priv/movie_reviews/migrations/20211115215118_create_reviewers.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
14
2021-11-19T00:22:09.000Z
2022-01-29T03:58:09.000Z
notebooks/modulo_4/parte_2/ecto_example/priv/movie_reviews/migrations/20211115215118_create_reviewers.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
null
null
null
notebooks/modulo_4/parte_2/ecto_example/priv/movie_reviews/migrations/20211115215118_create_reviewers.exs
igorgbr/curso-alquimia-stone
c5e40b0efcb7eef282f0f13a421671580c2762c1
[ "MIT" ]
1
2022-03-01T00:49:50.000Z
2022-03-01T00:49:50.000Z
defmodule EctoExample.MovieReviews.Repo.Migrations.CreateReviewers do use Ecto.Migration def change do create table("reviewers") do add(:name, :string) timestamps() end end end
18.545455
69
0.705882
21a716bb80f1ed8ba8bc5c6c68c4d11821daa240
558
ex
Elixir
lib/source_academy/workspace/comment.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy/workspace/comment.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
lib/source_academy/workspace/comment.ex
trewdys/source-academy2-debug
6146e1fac81472184877f47aa32dee7fdceb4fb6
[ "Unlicense" ]
null
null
null
defmodule SourceAcademy.Workspace.Comment do @moduledoc false use SourceAcademy, :model alias SourceAcademy.Accounts.User alias SourceAcademy.Workspace.Code schema "comments" do field :content, :string, default: "" field :is_resolved, :boolean, default: false belongs_to :poster, User belong...
21.461538
57
0.716846
21a72c3bdd2c7841cd3b3075c1d4d94b45fda583
1,524
ex
Elixir
lib/data/cassandra.ex
krystianity/elixir-ms
f40cd508542f4356c05e87d183bdb1d056bff3ff
[ "Artistic-1.0-cl8" ]
42
2017-03-19T21:41:25.000Z
2021-08-02T12:05:26.000Z
lib/data/cassandra.ex
krystianity/elixir-ms
f40cd508542f4356c05e87d183bdb1d056bff3ff
[ "Artistic-1.0-cl8" ]
1
2017-05-12T20:05:27.000Z
2017-05-12T20:05:27.000Z
lib/data/cassandra.ex
krystianity/elixir-ms
f40cd508542f4356c05e87d183bdb1d056bff3ff
[ "Artistic-1.0-cl8" ]
7
2017-04-28T13:10:37.000Z
2020-06-12T15:18:01.000Z
defmodule ExTest.Cassandra do use GenServer alias MSBase.Registry @process_key "cassandra-genserver" def start(_) do {:ok, pid} = GenServer.start_link(__MODULE__, nil) Registry.set(@process_key, pid) end def init(_init_arg) do {:ok, conn} = Xandra.start_link( host: Application.get_env...
27.214286
74
0.664698
21a76a61639b9a8c80828af8141fb9c3c3d8a9ea
222
ex
Elixir
integration_test/temple_plug_demo/lib/temple_plug_demo.ex
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
integration_test/temple_plug_demo/lib/temple_plug_demo.ex
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
integration_test/temple_plug_demo/lib/temple_plug_demo.ex
mhanberg/dsl
21e3c7e3a24fabecd436fb09271d90c3e9fb8c30
[ "MIT" ]
null
null
null
defmodule TemplePlugDemo do @moduledoc """ Documentation for `TemplePlugDemo`. """ @doc """ Hello world. ## Examples iex> TemplePlugDemo.hello() :world """ def hello do :world end end
11.684211
37
0.599099
21a7d1fc4240d759d2d177bdabf2d982ea8eda5c
3,642
ex
Elixir
lib/plausible/google/api.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
1
2020-04-08T16:39:00.000Z
2020-04-08T16:39:00.000Z
lib/plausible/google/api.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
lib/plausible/google/api.ex
pmhoudry/plausible
454feec36e62b866ae86e07a1f4133d9782d4365
[ "MIT" ]
null
null
null
defmodule Plausible.Google.Api do @scope URI.encode_www_form("https://www.googleapis.com/auth/webmasters.readonly email") @verified_permission_levels ["siteOwner", "siteFullUser", "siteRestrictedUser"] def authorize_url(site_id) do if Mix.env() == :test do "" else "https://accounts.google.com...
40.021978
279
0.67408
21a7e768ca813223251aa15e02ca248c6547b842
313
ex
Elixir
lib/storeHall/helpers/deep_merge.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
null
null
null
lib/storeHall/helpers/deep_merge.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
4
2019-07-16T06:24:42.000Z
2021-05-07T22:26:14.000Z
lib/storeHall/helpers/deep_merge.ex
macypa/storeHall
9fe810f763527cc87fa165138bdfb3cda92fa553
[ "MIT" ]
1
2018-11-23T21:13:31.000Z
2018-11-23T21:13:31.000Z
defmodule StoreHall.DeepMerge do def merge(left, nil), do: left def merge(left, right), do: Map.merge(left, right, &deep_resolve/3) defp deep_resolve(_key, left = %{}, right = %{}), do: merge(left, right) defp deep_resolve(_key, left, nil), do: left defp deep_resolve(_key, _left, right), do: right end
39.125
74
0.693291
21a8006ad52d9d61957825f69167b3e33cce38a2
4,654
ex
Elixir
debian/manpage.sgml.ex
nima/atomicles
396bbebd12fe8b399f7cbef2e521708bf6786b3f
[ "MIT" ]
null
null
null
debian/manpage.sgml.ex
nima/atomicles
396bbebd12fe8b399f7cbef2e521708bf6786b3f
[ "MIT" ]
1
2015-07-22T01:44:41.000Z
2015-12-27T23:20:15.000Z
debian/manpage.sgml.ex
nima/atomicles
396bbebd12fe8b399f7cbef2e521708bf6786b3f
[ "MIT" ]
null
null
null
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ <!-- Process this file with docbook-to-man to generate an nroff manual page: `docbook-to-man manpage.sgml > manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Ma...
30.025806
75
0.657499
21a805ab92af68f93b1f9e4daca18d2fcff2765e
1,774
exs
Elixir
apps/local_ledger_db/priv/repo/migrations/20171116071232_add_friendly_id_to_transactions.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/local_ledger_db/priv/repo/migrations/20171116071232_add_friendly_id_to_transactions.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/local_ledger_db/priv/repo/migrations/20171116071232_add_friendly_id_to_transactions.exs
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "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...
30.586207
85
0.615558
21a8064447278659c4a24b7bda83e72fb28f3793
1,827
ex
Elixir
clients/content/lib/google_api/content/v2/model/orderpayments_notify_refund_request.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/orderpayments_notify_refund_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orderpayments_notify_refund_request.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 &quot;License&quot;); # 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.471698
139
0.724685
21a80ac5819076b5ca50733cb8ae9c60a3832d35
718
ex
Elixir
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/resource.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.Compute/lib/microsoft/azure/management/compute/model/resource.ex
chgeuer/ex_microsoft_azure_management
99cd9f7f2ff1fdbe69ca5bac55b6e2af91ba3603
[ "Apache-2.0" ]
null
null
null
Microsoft.Azure.Management.Compute/lib/microsoft/azure/management/compute/model/resource.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.Compute.Model.Resource do @moduledoc """ The Resource model definition. """ @derive [Poison.Encoder] defstru...
21.117647
81
0.640669
21a872c1ada5bcd8f8790c8276113a241e66bfd2
680
ex
Elixir
lib/asciinema_web/trailing_format.ex
lnxbil/asciinema-server
7fd64e52927b5d4afc53a2da3243cff91c9c37c3
[ "Apache-2.0" ]
1
2021-07-07T12:36:10.000Z
2021-07-07T12:36:10.000Z
lib/asciinema_web/trailing_format.ex
lnxbil/asciinema-server
7fd64e52927b5d4afc53a2da3243cff91c9c37c3
[ "Apache-2.0" ]
null
null
null
lib/asciinema_web/trailing_format.ex
lnxbil/asciinema-server
7fd64e52927b5d4afc53a2da3243cff91c9c37c3
[ "Apache-2.0" ]
null
null
null
defmodule AsciinemaWeb.TrailingFormat do @known_extensions ["js", "json", "png", "gif"] def init(opts), do: opts def call(conn, _opts) do case conn.path_info do [] -> conn path_info -> %{conn | path_info: rewrite_path_info(path_info)} end end defp rewrite_path_info(path_...
23.448276
77
0.576471
21a894c1d28f2ed2774835912b413907676c25a8
20,605
ex
Elixir
project2/p3/project2/lib/Server/server.ex
shubhamagiwal/DOSFall2017
3c1522c4163f57402f147b50614d4051b05a080f
[ "MIT" ]
3
2019-10-28T21:02:55.000Z
2020-10-01T02:29:37.000Z
project2/p3/project2/lib/Server/server.ex
shubhamagiwal/DOSFall2017
3c1522c4163f57402f147b50614d4051b05a080f
[ "MIT" ]
null
null
null
project2/p3/project2/lib/Server/server.ex
shubhamagiwal/DOSFall2017
3c1522c4163f57402f147b50614d4051b05a080f
[ "MIT" ]
4
2019-10-12T19:41:58.000Z
2021-09-24T20:24:47.000Z
defmodule Project2.Server do use GenServer @gossip 10 @pushsumcount 3 def start_server_node(server_tuple) do serverName=String.to_atom(to_string("server@")<>elem(server_tuple,0)) {:ok,_}=Node.start(serverName) cookie=Application.get_env(:project1, :cookie) Node.set_cookie(cookie) ...
44.793478
182
0.563213
21a89b9e28c1f4a5ce88ae4ee0a5b2fa953d1189
986
ex
Elixir
lib/bd_pro/endpoint.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
lib/bd_pro/endpoint.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
lib/bd_pro/endpoint.ex
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
defmodule BdPro.Endpoint do use Phoenix.Endpoint, otp_app: :bd_pro socket "/socket", BdPro.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 Plug.Static, at...
24.65
69
0.705882
21a8b44029012d4ab0cb769d3391ed6aae438d00
135
ex
Elixir
test/fakes/subscriber.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
3
2018-11-17T11:11:47.000Z
2019-09-13T16:13:43.000Z
test/fakes/subscriber.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
38
2018-11-11T01:28:41.000Z
2019-04-01T21:28:02.000Z
test/fakes/subscriber.ex
paulhenri-l/resty
b6aec738569355bab53fbc732bfd323c63348b85
[ "MIT" ]
1
2019-01-10T12:41:48.000Z
2019-01-10T12:41:48.000Z
defmodule Subscriber do use Resty.Resource.Base set_site "site.tld" set_resource_path "/subscribers" define_attributes [] end
16.875
34
0.77037
21a8fd8fad31d26f21e2c4cfb8e4cca16e13232a
81
exs
Elixir
test/bio/world/clock_test.exs
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
test/bio/world/clock_test.exs
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
test/bio/world/clock_test.exs
xire28/bio
c3266b551f8ac855653d6de7f13fd566f2daa549
[ "MIT" ]
null
null
null
defmodule Bio.World.ClockTest do use ExUnit.Case doctest Bio.World.Clock end
16.2
32
0.790123
21a9027ecb763c4f71fa6d889a88f4a7aa694244
708
exs
Elixir
config/prod.secret.exs
mdgriffith/elixir_space_adventure
0a1811ddff3d7e62a6596b714f817bd7dfe4bd58
[ "BSD-3-Clause" ]
null
null
null
config/prod.secret.exs
mdgriffith/elixir_space_adventure
0a1811ddff3d7e62a6596b714f817bd7dfe4bd58
[ "BSD-3-Clause" ]
null
null
null
config/prod.secret.exs
mdgriffith/elixir_space_adventure
0a1811ddff3d7e62a6596b714f817bd7dfe4bd58
[ "BSD-3-Clause" ]
null
null
null
use Mix.Config # In this file, we keep production configuration that # you likely want to automate and keep it away from # your version control system. # # You should document the content of this # file or create a script for recreating it, since it's # kept out of version control and might be hard to recover # or rec...
33.714286
85
0.786723
21a925f291ba602762550e9493b93abd0d6df2e7
421
exs
Elixir
test/not_a_blog_web/views/error_view_test.exs
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
test/not_a_blog_web/views/error_view_test.exs
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
test/not_a_blog_web/views/error_view_test.exs
ARtoriouSs/not_a_blog
7e2810d1ae6f9fd579d2964981dbbeead7df1e79
[ "MIT" ]
null
null
null
defmodule NotABlogWeb.ErrorViewTest do use NotABlogWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do assert render_to_string(NotABlogWeb.ErrorView, "404.html", []) == "Not Found" end test "renders 500.html" do ...
28.066667
93
0.736342
21a95221602efa0bf3f2a1b875afdfda94a38ecb
518
ex
Elixir
lib/stone_bank/accounts/account.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
lib/stone_bank/accounts/account.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
lib/stone_bank/accounts/account.ex
brunoguedesit/stone_bank
ce99b3269595866faf7eb95f89b0d78f7cd62f2a
[ "MIT" ]
null
null
null
defmodule StoneBank.Accounts.Account do @moduledoc """ Account schema """ use Ecto.Schema import Ecto.Changeset @primary_key {:id, Ecto.UUID, autogenerate: true} @foreign_key_type Ecto.UUID @derive {Jason.Encoder, only: [:amount]} schema "accounts" do field :amount, Money.Ecto.Composite.Type, ...
21.583333
76
0.681467
21a964fda0e5a91f3a495caf30f6209181176ce3
881
exs
Elixir
mix.exs
jonphillips/mailgun
e36bdc4b8d9c98617b185eab74c581bdb4896016
[ "MIT" ]
null
null
null
mix.exs
jonphillips/mailgun
e36bdc4b8d9c98617b185eab74c581bdb4896016
[ "MIT" ]
null
null
null
mix.exs
jonphillips/mailgun
e36bdc4b8d9c98617b185eab74c581bdb4896016
[ "MIT" ]
null
null
null
defmodule Mailgun.Mixfile do use Mix.Project def project do [app: :mailgun, version: "0.1.3", elixir: "~> 1.5", deps: deps, package: [ contributors: ["Chris McCord"], licenses: ["MIT"], links: %{github: "https://github.com/chrismccord/mailgun"} ], description:...
21.487805
77
0.569807
21a96ac01b81dd6180e65e326c48772819fd7e33
69
ex
Elixir
lib/morphic_pro_web/views/layout_view.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
lib/morphic_pro_web/views/layout_view.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
lib/morphic_pro_web/views/layout_view.ex
MorphicPro/morphic_pro
0028726250b6c55842e4bb48ffeeddc28e63b1bd
[ "MIT" ]
null
null
null
defmodule MorphicProWeb.LayoutView do use MorphicProWeb, :view end
17.25
37
0.826087
21a96ecd8d2bca189bdf3fedf3c81e38be81cd71
1,072
ex
Elixir
examples/phoenix_basic_example/lib/dripper_example/application.ex
Ninigi/ecto_dripper
ca472e90aafd3313b91a268f81e6aa936c59e021
[ "MIT" ]
1
2018-06-28T11:15:14.000Z
2018-06-28T11:15:14.000Z
examples/phoenix_basic_example/lib/dripper_example/application.ex
Ninigi/ecto_dripper
ca472e90aafd3313b91a268f81e6aa936c59e021
[ "MIT" ]
null
null
null
examples/phoenix_basic_example/lib/dripper_example/application.ex
Ninigi/ecto_dripper
ca472e90aafd3313b91a268f81e6aa936c59e021
[ "MIT" ]
null
null
null
defmodule DripperExample.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 Ecto reposito...
33.5
92
0.726679
21a9d2e84f48383abe32f4dd06b58ed3fc485981
1,489
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/url_maps_validate_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/url_maps_validate_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/url_maps_validate_request.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...
31.680851
123
0.74278
21a9f83040d7d8945cb25c130950a8dfa7a41c01
1,183
ex
Elixir
lib/dragonhacks_web/channels/user_socket.ex
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
1
2019-04-03T01:48:59.000Z
2019-04-03T01:48:59.000Z
lib/dragonhacks_web/channels/user_socket.ex
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
null
null
null
lib/dragonhacks_web/channels/user_socket.ex
rkalz/dragonhacks-backend
377ed0383f403c720af30bc8ef4f3fdaf89b3e38
[ "MIT" ]
1
2019-03-31T21:21:47.000Z
2019-03-31T21:21:47.000Z
defmodule DragonhacksWeb.UserSocket do use Phoenix.Socket ## Channels channel "room:*", DragonhacksWeb.RoomChannel ## Transports transport :websocket, Phoenix.Transports.WebSocket # transport :longpoll, Phoenix.Transports.LongPoll # Socket params are passed from the client and can # be used to verify...
31.131579
86
0.707523
21aa0dba5a4d7dbf48061331e4a5c246439805a2
375
ex
Elixir
lib/absinthe/graphql_ws/message/complete.ex
maartenvanvliet/absinthe_graphql_ws
96cc925269a6519ffbe43ee7843d90615b25cb5e
[ "MIT" ]
null
null
null
lib/absinthe/graphql_ws/message/complete.ex
maartenvanvliet/absinthe_graphql_ws
96cc925269a6519ffbe43ee7843d90615b25cb5e
[ "MIT" ]
null
null
null
lib/absinthe/graphql_ws/message/complete.ex
maartenvanvliet/absinthe_graphql_ws
96cc925269a6519ffbe43ee7843d90615b25cb5e
[ "MIT" ]
null
null
null
defmodule Absinthe.GraphqlWS.Message.Complete do @moduledoc """ Indicates that the requested operation execution has completed. If the server dispatched the Error message relative to the original Subscribe message, no Complete message will be emitted. """ def new(id, payload \\ %{}) do Jason.encode!(%{...
31.25
72
0.730667
21aa1d5ff4128a021d07ab4ed3f51611673a883a
3,112
ex
Elixir
clients/dataproc/lib/google_api/dataproc/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dataproc/lib/google_api/dataproc/v1/model/operation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dataproc/lib/google_api/dataproc/v1/model/operation.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 &quot;License&quot;); # 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 ...
52.745763
525
0.729113
21aa278a211ec0a63b29ff667580b4e4a4f51f25
521
ex
Elixir
eSalud/web/models/disease.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
eSalud/web/models/disease.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
eSalud/web/models/disease.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
defmodule ESalud.Disease do use ESalud.Web, :model schema "disease" do field :description, :string field :id_med, :string field :name, :string many_to_many :diagnostic, ESalud.Diagnostic, join_through: ESalud.Diagnostic_Disease timestamps() end @doc """ Builds a changeset based on the ...
22.652174
88
0.667946
21aa3276991a503ffa351209d52a1a15dc04cbd5
1,684
ex
Elixir
lib/absinthe/language/input_value_definition.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
2
2021-04-22T23:45:04.000Z
2021-05-07T01:01:15.000Z
lib/absinthe/language/input_value_definition.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
1
2020-04-07T23:46:38.000Z
2020-04-07T23:46:38.000Z
lib/absinthe/language/input_value_definition.ex
TheRealReal/absinthe
6eae5bc36283e58f42d032b8afd90de3ad64f97b
[ "MIT" ]
null
null
null
defmodule Absinthe.Language.InputValueDefinition do @moduledoc false alias Absinthe.{Blueprint, Language} @enforce_keys [:name, :type] defstruct [ :name, :type, description: nil, default_value: nil, directives: [], loc: %{line: nil} ] @type t :: %__MODULE__{ name: String...
29.034483
82
0.639549
21aa44678a3c59af1d24d091cdfeb9e01048d38b
70
ex
Elixir
lib/exchange_api_web/views/trade_view.ex
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
3
2020-08-10T10:09:26.000Z
2020-08-28T08:41:36.000Z
lib/exchange_api_web/views/trade_view.ex
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
30
2020-08-17T10:38:24.000Z
2022-02-28T07:06:42.000Z
lib/exchange_api_web/views/trade_view.ex
realyarilabs/exchange_api
c7dd9af9356277a022b164675cc1622359af8a76
[ "Apache-2.0" ]
1
2020-09-17T13:08:47.000Z
2020-09-17T13:08:47.000Z
defmodule ExchangeApiWeb.TradeView do use ExchangeApiWeb, :view end
17.5
37
0.828571
21aa7626b9b23a728850985c4f493f1782be9282
1,690
ex
Elixir
clients/metastore/lib/google_api/metastore/v1beta/model/maintenance_window.ex
renovate-bot/elixir-google-api
1da34cd39b670c99f067011e05ab90af93fef1f6
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/metastore/lib/google_api/metastore/v1beta/model/maintenance_window.ex
swansoffiee/elixir-google-api
9ea6d39f273fb430634788c258b3189d3613dde0
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/metastore/lib/google_api/metastore/v1beta/model/maintenance_window.ex
dazuma/elixir-google-api
6a9897168008efe07a6081d2326735fe332e522c
[ "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...
33.8
117
0.728994
21aaaba50ad39215e5e34972ee42bd16b4c53809
2,673
ex
Elixir
apps/bookmarker/web/controllers/bookmark_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
4
2019-10-04T16:11:15.000Z
2021-08-18T21:00:13.000Z
apps/bookmarker/web/controllers/bookmark_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
5
2020-03-16T23:52:25.000Z
2021-09-03T16:52:17.000Z
apps/bookmarker/web/controllers/bookmark_controller.ex
allen-garvey/phoenix-umbrella
1d444bbd62a5e7b5f51d317ce2be71ee994125d5
[ "MIT" ]
null
null
null
defmodule Bookmarker.BookmarkController do use Bookmarker.Web, :controller alias Bookmarker.Bookmark alias Bookmarker.Admin def index(conn, _params) do bookmarks = Repo.all(from Bookmark, order_by: [desc: :id]) render(conn, "index.html", bookmarks: bookmarks) end def new(conn, _params) do cha...
34.269231
119
0.653199
21aad1f5faf9f6db5026581a27812f6392cffa6d
941
exs
Elixir
day03/test/day03_test.exs
bjorng/advent-of-code-2019
b3612eefb5097f07ae139b5b7c637fabd3c86bef
[ "Apache-2.0" ]
5
2019-12-08T05:14:27.000Z
2020-10-26T04:06:22.000Z
day03/test/day03_test.exs
bjorng/advent-of-code-2019
b3612eefb5097f07ae139b5b7c637fabd3c86bef
[ "Apache-2.0" ]
1
2019-12-22T18:20:36.000Z
2019-12-22T19:06:48.000Z
day03/test/day03_test.exs
bjorng/advent-of-code-2019
b3612eefb5097f07ae139b5b7c637fabd3c86bef
[ "Apache-2.0" ]
null
null
null
defmodule Day03Test do use ExUnit.Case doctest Day03 test "test part 1 with examples" do assert Day03.part1(["R8,U5,L5,D3","U7,R6,D4,L4"]) == 6 assert Day03.part1(example1()) == 159 assert Day03.part1(example2()) == 135 end test "test part 1 with my input" do assert Day03.part1(input()) == 1...
22.95122
59
0.624867